[PATCH] clocksource/drivers/mips-gic-timer: Remove remaining CONFIG_GENERIC_GETTIMEOFDAY ifdeffery
From: Thomas Weißschuh
Date: Thu Dec 03 2026 - 02:07:35 EST
Since commit 1bafc1f65972 ("vDSO: Make clockmode constants available
without CONFIG_GENERIC_GETTIMEOFDAY") the clockmode constants are always
available.
Setting the member won't have any impact if no vDSO is available,
but the code is simpler.
Drop the ifdeffery.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
---
drivers/clocksource/mips-gic-timer.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c
index fc97b31f0adb..f3e9f55effff 100644
--- a/drivers/clocksource/mips-gic-timer.c
+++ b/drivers/clocksource/mips-gic-timer.c
@@ -283,10 +283,7 @@ static void gic_clocksource_promote(struct work_struct *work)
return;
WRITE_ONCE(gic_use_local_counter, true);
-
-#ifdef CONFIG_GENERIC_GETTIMEOFDAY
gic_clocksource.vdso_clock_mode = VDSO_CLOCKMODE_GIC;
-#endif
if (mips_cm_revision() >= CM_REV_CM3 || !IS_ENABLED(CONFIG_CPU_FREQ)) {
sched_clock_register(mips_cm_is64 ?
---
base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790
change-id: 20261203-vdso-generic-gettimeofday-mips-1083eddc9ea9
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>