linux_dsm_epyc7002/arch/arm64
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
..
boot arm64: Use the correct style for SPDX License Identifier 2019-04-16 16:28:01 +01:00
configs
crypto arm64: HWCAP: add support for AT_HWCAP2 2019-04-16 16:27:12 +01:00
include arm64: vdso: Fix clock_getres() for CLOCK_REALTIME 2019-04-16 18:15:56 +01:00
kernel arm64: vdso: Fix clock_getres() for CLOCK_REALTIME 2019-04-16 18:15:56 +01:00
kvm KVM: arm64: Reset the PMU in preemptible context 2019-03-19 17:56:24 +00:00
lib arm64: Makefile: Replace -pg with CC_FLAGS_FTRACE 2019-04-09 10:34:59 +01:00
mm arm64: Save and restore OSDLR_EL1 across suspend/resume 2019-04-09 12:39:13 +01:00
net
xen
Kconfig arm64: ptrace: Add function argument access API 2019-04-12 17:04:27 +01:00
Kconfig.debug
Kconfig.platforms This pull request brings in a build fix for arm64 with bcm2835 2019-03-18 10:31:24 -07:00
Makefile