1
0
Fork 0
alistair23-linux/arch/s390/kernel/vdso64
Vincenzo Frascino a9a3b33b20 s390/vdso: fix vDSO clock_getres()
[ Upstream commit 478237a595 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 15:37:05 -04:00
..
.gitignore s390: add various .gitignore files. 2012-05-16 14:42:41 +02:00
Makefile s390/vdso: Use $(LD) instead of $(CC) to link vDSO 2020-06-30 15:37:05 -04:00
clock_getres.S s390/vdso: fix vDSO clock_getres() 2020-06-30 15:37:05 -04:00
clock_gettime.S s390/vdso: correct CFI annotations of vDSO functions 2018-09-20 13:20:29 +02:00
getcpu.S s390/vdso: revise CFI annotations of vDSO functions 2017-12-13 10:51:36 +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