Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vdso: Drop Kconfig GENERIC_VDSO_TIME_NS

All architectures implementing time-related functionality in the vDSO are
using the generic vDSO library which handles time namespaces properly.

Remove the now unnecessary Kconfig symbol.

Enables the use of time namespaces on architectures, which use the
generic vDSO but did not enable GENERIC_VDSO_TIME_NS, namely MIPS and arm.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/all/20250826-vdso-cleanups-v1-10-d9b65750e49f@linutronix.de


authored by

Thomas Weißschuh and committed by
Thomas Gleixner
bad53ae2 7b338f6d

+1 -14
-1
arch/arm64/Kconfig
··· 162 162 select GENERIC_SMP_IDLE_THREAD 163 163 select GENERIC_TIME_VSYSCALL 164 164 select GENERIC_GETTIMEOFDAY 165 - select GENERIC_VDSO_TIME_NS 166 165 select HARDIRQS_SW_RESEND 167 166 select HAS_IOPORT 168 167 select HAVE_MOVE_PMD
-1
arch/loongarch/Kconfig
··· 108 108 select GENERIC_SCHED_CLOCK 109 109 select GENERIC_SMP_IDLE_THREAD 110 110 select GENERIC_TIME_VSYSCALL 111 - select GENERIC_VDSO_TIME_NS 112 111 select GPIOLIB 113 112 select HAS_IOPORT 114 113 select HAVE_ARCH_AUDITSYSCALL
-1
arch/powerpc/Kconfig
··· 207 207 select GENERIC_PCI_IOMAP if PCI 208 208 select GENERIC_SMP_IDLE_THREAD 209 209 select GENERIC_TIME_VSYSCALL 210 - select GENERIC_VDSO_TIME_NS 211 210 select HAS_IOPORT if PCI 212 211 select HAVE_ARCH_AUDITSYSCALL 213 212 select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP
-1
arch/riscv/Kconfig
··· 121 121 select GENERIC_SCHED_CLOCK 122 122 select GENERIC_SMP_IDLE_THREAD 123 123 select GENERIC_TIME_VSYSCALL if GENERIC_GETTIMEOFDAY 124 - select GENERIC_VDSO_TIME_NS if GENERIC_GETTIMEOFDAY 125 124 select HARDIRQS_SW_RESEND 126 125 select HAS_IOPORT if MMU 127 126 select HAVE_ALIGNED_STRUCT_PAGE
-1
arch/s390/Kconfig
··· 167 167 select GENERIC_GETTIMEOFDAY 168 168 select GENERIC_SMP_IDLE_THREAD 169 169 select GENERIC_TIME_VSYSCALL 170 - select GENERIC_VDSO_TIME_NS 171 170 select GENERIC_IOREMAP if PCI 172 171 select HAVE_ALIGNED_STRUCT_PAGE 173 172 select HAVE_ARCH_AUDITSYSCALL
-1
arch/x86/Kconfig
··· 181 181 select GENERIC_SMP_IDLE_THREAD 182 182 select GENERIC_TIME_VSYSCALL 183 183 select GENERIC_GETTIMEOFDAY 184 - select GENERIC_VDSO_TIME_NS 185 184 select GENERIC_VDSO_OVERFLOW_PROTECT 186 185 select GUP_GET_PXX_LOW_HIGH if X86_PAE 187 186 select HARDIRQS_SW_RESEND
+1 -1
init/Kconfig
··· 1347 1347 1348 1348 config TIME_NS 1349 1349 bool "TIME namespace" 1350 - depends on GENERIC_VDSO_TIME_NS 1350 + depends on GENERIC_GETTIMEOFDAY 1351 1351 default y 1352 1352 help 1353 1353 In this namespace boottime and monotonic clocks can be set.
-6
lib/vdso/Kconfig
··· 12 12 Each architecture that enables this feature has to 13 13 provide the fallback implementation. 14 14 15 - config GENERIC_VDSO_TIME_NS 16 - bool 17 - help 18 - Selected by architectures which support time namespaces in the 19 - VDSO 20 - 21 15 config GENERIC_VDSO_OVERFLOW_PROTECT 22 16 bool 23 17 help
-1
tools/testing/selftests/pidfd/config
··· 4 4 CONFIG_PID_NS=y 5 5 CONFIG_NET_NS=y 6 6 CONFIG_TIME_NS=y 7 - CONFIG_GENERIC_VDSO_TIME_NS=y 8 7 CONFIG_CGROUPS=y 9 8 CONFIG_CHECKPOINT_RESTORE=y