]> git.baikalelectronics.ru Git - kernel.git/commit
lib/vdso: Allow the high resolution parts to be compiled out
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2020 12:38:50 +0000 (13:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 Feb 2020 13:40:20 +0000 (14:40 +0100)
commitcaf640393f4d591f694ef3e5bd35c4f385ba54b5
treef337a9758f5a7f446ee75cea7db6d47febb61838
parent193baaea4fe7f39d6ed125bb6274148e54abd06a
lib/vdso: Allow the high resolution parts to be compiled out

If the architecture knows at compile time that there is no VDSO capable
clocksource supported it makes sense to optimize the guts of the high
resolution parts of the VDSO out at build time. Add a helper function to
check whether the VDSO should be high resolution capable and provide a stub
which can be overridden by an architecture.

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/20200207124402.530143168@linutronix.de
lib/vdso/gettimeofday.c