]> git.baikalelectronics.ru Git - kernel.git/commit
lib/vdso: Move fallback invocation to the callers
authorThomas Gleixner <tglx@linutronix.de>
Sun, 28 Jul 2019 13:12:53 +0000 (15:12 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 30 Jul 2019 22:09:09 +0000 (00:09 +0200)
commitf59563e937805ac630a6444e97ce425c62adbb83
tree8037b28cd508b44f0165a020e64aa596343eaec2
parent63066cc29761439c5a48b84106b21a741b0baf28
lib/vdso: Move fallback invocation to the callers

To allow syscall fallbacks using the legacy 32bit syscall for 32bit VDSO
builds, move the fallback invocation out into the callers.

Split the common code out of __cvdso_clock_gettime/getres() and invoke the
syscall fallback in the 64bit and 32bit variants.

Preparatory work for using legacy syscalls in 32bit VDSO. No functional
change.

Fixes: 77726c614aab ("lib/vdso: Provide generic VDSO implementation")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lkml.kernel.org/r/20190728131648.695579736@linutronix.de
lib/vdso/gettimeofday.c