linux/arch/arm64/kernel/vdso
Vincenzo Frascino 81fb8736dd arm64: vdso: Fix clock_getres() for CLOCK_REALTIME
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;

where 'hrtimer_resolution' depends on whether or not high resolution
timers are enabled, which is a runtime decision.

The vDSO incorrectly returns the constant CLOCK_REALTIME_RES. Fix this
by exposing 'hrtimer_resolution' in the vDSO datapage and returning that
instead.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
[will: Use WRITE_ONCE(), move adr off COARSE path, renumber labels, use 'w' reg]
Signed-off-by: Will Deacon <will.deacon@arm.com>
2019-04-16 18:15:56 +01:00
..
.gitignore arm64: drop non-existing vdso-offsets.h from .gitignore 2017-03-30 19:29:30 +01:00
Makefile arm64: vdso: use $(LD) instead of $(CC) to link VDSO 2019-04-11 18:15:02 +01:00
gen_vdso_offsets.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gettimeofday.S arm64: vdso: Fix clock_getres() for CLOCK_REALTIME 2019-04-16 18:15:56 +01:00
note.S arm64: Add build salt to the vDSO 2018-07-18 01:18:05 +09:00
sigreturn.S
vdso.S arm64: vdso: Mark vDSO code as read-only 2016-02-16 18:20:23 +00:00
vdso.lds.S arm64: vdso: move data page before code pages 2014-07-17 16:18:57 +01:00