[PATCH 0/7] vDSO: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED()

Thomas Weißschuh thomas.weissschuh at linutronix.de
Thu Jul 9 04:32:36 PDT 2026


Provide dummy declarations of the VDSO_CLOCKMODE_* constants and use
those to replace some ugly ifdeffery with cleaner IS_ENABLED() checks.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
Thomas Weißschuh (7):
      kbuild: support generated asm-headers in subdirectories
      vDSO: Make clockmode constants available without CONFIG_GENERIC_GETTIMEOFDAY
      MIPS: csrc-r4k: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED()
      clocksource/drivers/mips-gic-timer: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED()
      clocksource/drivers/arm_arch_timer: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED()
      clocksource/drivers/timer-riscv: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED()
      LoongArch: Replace CONFIG_GENERIC_GETTIMEOFDAY ifdeffery with IS_ENABLED()

 arch/loongarch/kernel/time.c           |  5 ++---
 arch/mips/kernel/csrc-r4k.c            |  4 +---
 drivers/clocksource/arm_arch_timer.c   |  7 ++-----
 drivers/clocksource/mips-gic-timer.c   |  5 ++---
 drivers/clocksource/timer-riscv.c      |  7 ++-----
 include/asm-generic/Kbuild             |  1 +
 include/asm-generic/vdso/clocksource.h |  0
 include/vdso/clocksource.h             |  7 +++++--
 scripts/Makefile.asm-headers           | 11 +++++------
 9 files changed, 20 insertions(+), 27 deletions(-)
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260605-vdso-arch-clockmodes-bfcaf9a2c848

Best regards,
--  
Thomas Weißschuh <thomas.weissschuh at linutronix.de>




More information about the linux-riscv mailing list