mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
vDSO: Make clockmode constants available without CONFIG_GENERIC_GETTIMEOFDAY
Some code, for example clocksource drivers, may want to use the vDSO clockmode constants even when CONFIG_GENERIC_GETTIMEOFDAY=n. But the symbols are completely hidden in that case, making ugly ifdeffery necessary. Always provide the enum definitions. As not all architectures provide asm/vdso/clocksource.h, provide an empty stub in asm-generic for it. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260724-vdso-arch-clockmodes-v4-2-ddbe447be860@linutronix.de
This commit is contained in:
parent
2d69b891e6
commit
1bafc1f659
|
|
@ -62,6 +62,7 @@ mandatory-y += topology.h
|
|||
mandatory-y += trace_clock.h
|
||||
mandatory-y += uaccess.h
|
||||
mandatory-y += unwind_user.h
|
||||
mandatory-y += vdso/clocksource.h
|
||||
mandatory-y += vermagic.h
|
||||
mandatory-y += vga.h
|
||||
mandatory-y += video.h
|
||||
|
|
|
|||
0
include/asm-generic/vdso/clocksource.h
Normal file
0
include/asm-generic/vdso/clocksource.h
Normal file
|
|
@ -4,13 +4,11 @@
|
|||
|
||||
#include <vdso/limits.h>
|
||||
|
||||
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
||||
#include <asm/vdso/clocksource.h>
|
||||
#endif /* CONFIG_GENERIC_GETTIMEOFDAY */
|
||||
|
||||
enum vdso_clock_mode {
|
||||
VDSO_CLOCKMODE_NONE,
|
||||
#ifdef CONFIG_GENERIC_GETTIMEOFDAY
|
||||
#ifdef VDSO_ARCH_CLOCKMODES
|
||||
VDSO_ARCH_CLOCKMODES,
|
||||
#endif
|
||||
VDSO_CLOCKMODE_MAX,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user