diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2026-07-24 15:36:19 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-08-10 16:25:21 +0200 |
| commit | 1bafc1f65972fb1ca9b87bb4ead593436162c4be (patch) | |
| tree | 8eee370723bb98fe47680a726c7b3adcfd222179 /include/vdso/clocksource.h | |
| parent | 2d69b891e6461eb3dc9af4741ded915966db4e01 (diff) | |
| download | linux-next-1bafc1f65972fb1ca9b87bb4ead593436162c4be.tar.gz linux-next-1bafc1f65972fb1ca9b87bb4ead593436162c4be.zip | |
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
Diffstat (limited to 'include/vdso/clocksource.h')
| -rw-r--r-- | include/vdso/clocksource.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/vdso/clocksource.h b/include/vdso/clocksource.h index c682e7c60273..bce81c02a7c6 100644 --- a/include/vdso/clocksource.h +++ b/include/vdso/clocksource.h @@ -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, |
