[tip: timers/vdso] LoongArch: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery
From: tip-bot2 for Thomas Weißschuh
Date: Mon Aug 10 2026 - 10:42:49 EST
The following commit has been merged into the timers/vdso branch of tip:
Commit-ID: 1f8258de239da872fd3cdccfb97b406ccb354ce3
Gitweb: https://git.kernel.org/tip/1f8258de239da872fd3cdccfb97b406ccb354ce3
Author: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Fri, 24 Jul 2026 15:36:24 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Mon, 10 Aug 2026 16:25:22 +02:00
LoongArch: Remove CONFIG_GENERIC_GETTIMEOFDAY ifdeffery
Now that there is a definition of VDSO_CLOCKMODE_CPU even if no
vDSO is built, the ugly ifdeffery can be removed.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260724-vdso-arch-clockmodes-v4-7-ddbe447be860@xxxxxxxxxxxxx
---
arch/loongarch/kernel/time.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/loongarch/kernel/time.c b/arch/loongarch/kernel/time.c
index dbaaabc..5892f6d 100644
--- a/arch/loongarch/kernel/time.c
+++ b/arch/loongarch/kernel/time.c
@@ -212,9 +212,7 @@ static struct clocksource clocksource_const = {
.read = read_const_counter,
.mask = CLOCKSOURCE_MASK(64),
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
-#ifdef CONFIG_GENERIC_GETTIMEOFDAY
.vdso_clock_mode = VDSO_CLOCKMODE_CPU,
-#endif
};
int __init constant_clocksource_init(void)