Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Vincenzo Frascino and committed by
Thomas Gleixner
659a9faa 3e0e9f8c

+11 -4
+1 -4
arch/x86/include/asm/clocksource.h
··· 4 4 #ifndef _ASM_X86_CLOCKSOURCE_H 5 5 #define _ASM_X86_CLOCKSOURCE_H 6 6 7 - #define VDSO_ARCH_CLOCKMODES \ 8 - VDSO_CLOCKMODE_TSC, \ 9 - VDSO_CLOCKMODE_PVCLOCK, \ 10 - VDSO_CLOCKMODE_HVCLOCK 7 + #include <asm/vdso/clocksource.h> 11 8 12 9 extern unsigned int vclocks_used; 13 10
+10
arch/x86/include/asm/vdso/clocksource.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __ASM_VDSO_CLOCKSOURCE_H 3 + #define __ASM_VDSO_CLOCKSOURCE_H 4 + 5 + #define VDSO_ARCH_CLOCKMODES \ 6 + VDSO_CLOCKMODE_TSC, \ 7 + VDSO_CLOCKMODE_PVCLOCK, \ 8 + VDSO_CLOCKMODE_HVCLOCK 9 + 10 + #endif /* __ASM_VDSO_CLOCKSOURCE_H */