]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4efabe66c52ff2e9f853cfd63f4ab52badd56beb
treeb8a7edb0fa964b98fefd464ad7d69fcd6a2cd7f7
parent677b6c4fd6e6c10f0ea30caf71517a22df30187e
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