[PATCH v4 2/7] vDSO: Make clockmode constants available without CONFIG_GENERIC_GETTIMEOFDAY

Arnd Bergmann arnd at arndb.de
Fri Jul 24 08:31:16 PDT 2026


On Fri, Jul 24, 2026, at 15:36, Thomas Weißschuh wrote:
> 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 at linutronix.de>

Acked-by: Arnd Bergmann <arnd at arndb.de>



More information about the linux-riscv mailing list