linux/arch/s390/kernel/vdso64
Vincenzo Frascino 478237a595 s390/vdso: fix vDSO clock_getres()
clock_getres in the vDSO library has to preserve the same behaviour
of posix_get_hrtimer_res().

In particular, posix_get_hrtimer_res() does:
    sec = 0;
    ns = hrtimer_resolution;
and hrtimer_resolution depends on the enablement of the high
resolution timers that can happen either at compile or at run time.

Fix the s390 vdso implementation of clock_getres keeping a copy of
hrtimer_resolution in vdso data and using that directly.

Link: https://lkml.kernel.org/r/20200324121027.21665-1-vincenzo.frascino@arm.com
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
[heiko.carstens@de.ibm.com: use llgf for proper zero extension]
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2020-06-16 13:44:05 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile s390/vdso: Use $(LD) instead of $(CC) to link vDSO 2020-06-16 13:44:05 +02:00
clock_getres.S s390/vdso: fix vDSO clock_getres() 2020-06-16 13:44:05 +02:00
clock_gettime.S s390/vdso: correct CFI annotations of vDSO functions 2018-09-20 13:20:29 +02:00
getcpu.S s390/vdso: fix getcpu 2019-11-30 10:52:44 +01:00
gettimeofday.S s390/vdso: correct CFI annotations of vDSO functions 2018-09-20 13:20:29 +02:00
note.S s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
vdso64.lds.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vdso64_wrapper.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00