]> 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)
commit7c5b48ce1dc7e57e4fee81dbfaed7db195c4688a
treeb8a7edb0fa964b98fefd464ad7d69fcd6a2cd7f7
parentc48ecfc0c25eefdbf087468398d848ab2208e05d
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