lib/vdso: Avoid highres update if clocksource is not VDSO capable
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2020 12:39:00 +0000 (13:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 Feb 2020 19:12:17 +0000 (20:12 +0100)
commitc7a18100bdffdff440c7291db6e80863fab0461e
treeb8a7edb0fa964b98fefd464ad7d69fcd6a2cd7f7
parentf86fd32db706613fe8d0104057efa6e83e0d7e8f
lib/vdso: Avoid highres update if clocksource is not VDSO capable

If the current clocksource is not VDSO capable there is no point in
updating the high resolution parts of the VDSO data.

Replace the architecture specific check with a check for a VDSO capable
clocksource and skip the update if there is none.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lkml.kernel.org/r/20200207124403.563379423@linutronix.de
arch/arm/include/asm/vdso/vsyscall.h
include/asm-generic/vdso/vsyscall.h
kernel/time/vsyscall.c