]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/time/vsyscall.c
clocksource: Add common vdso clock mode storage
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2020 12:38:55 +0000 (13:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 Feb 2020 13:40:23 +0000 (14:40 +0100)
commit5d51bee725cc1497352d6b0b604e42a90c680540
tree739d7486c2bd860a038c8b8ef2d05a75cfd14ede
parenteec399dd862762b9594df3659f15839a4e12f17a
clocksource: Add common vdso clock mode storage

All architectures which use the generic VDSO code have their own storage
for the VDSO clock mode. That's pointless and just requires duplicate code.

Provide generic storage for it. The new Kconfig symbol is intermediate and
will be removed once all architectures are converted over.

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.028046322@linutronix.de
include/linux/clocksource.h
kernel/time/clocksource.c
kernel/time/vsyscall.c
lib/vdso/Kconfig
lib/vdso/gettimeofday.c