diff options
author | Vincenzo Frascino <vincenzo.frascino@arm.com> | 2020-03-20 15:53:29 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-03-21 15:23:54 +0100 |
commit | 659a9faa3f3c89de4c34c30c3da676059864e0fe (patch) | |
tree | fb3734b38c9a374ae183eac0b8a4cc234a0ae210 /arch/x86/include/asm/clocksource.h | |
parent | linux/limits.h: Extract common header for vDSO (diff) | |
download | linux-659a9faa3f3c89de4c34c30c3da676059864e0fe.tar.xz linux-659a9faa3f3c89de4c34c30c3da676059864e0fe.zip |
x86: Introduce asm/vdso/clocksource.h
The vDSO library should only include the necessary headers required for
a userspace library (UAPI and a minimal set of kernel headers). To make
this possible it is necessary to isolate from the kernel headers the
common parts that are strictly necessary to build the library.
Introduce asm/vdso/clocksource.h to contain all the arm64 specific
functions that are suitable for vDSO inclusion.
This header will be required by a future patch that will generalize
vdso/clocksource.h.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200320145351.32292-5-vincenzo.frascino@arm.com
Diffstat (limited to 'arch/x86/include/asm/clocksource.h')
-rw-r--r-- | arch/x86/include/asm/clocksource.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/include/asm/clocksource.h b/arch/x86/include/asm/clocksource.h index d561db67f96d..dc9dc7b3911a 100644 --- a/arch/x86/include/asm/clocksource.h +++ b/arch/x86/include/asm/clocksource.h @@ -4,10 +4,7 @@ #ifndef _ASM_X86_CLOCKSOURCE_H #define _ASM_X86_CLOCKSOURCE_H -#define VDSO_ARCH_CLOCKMODES \ - VDSO_CLOCKMODE_TSC, \ - VDSO_CLOCKMODE_PVCLOCK, \ - VDSO_CLOCKMODE_HVCLOCK +#include <asm/vdso/clocksource.h> extern unsigned int vclocks_used; |