vdso: Automatically select HAVE_GENERIC_VDSO if necessary

gettimeofday() and getrandom() in the vDSO require the vDSO datastore.

Enable it automatically if either one of them is enabled so the
architecture code doesn't need to know this.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Link: https://patch.msgid.link/20260709-vdso-have_generic_vdso-v1-4-d2e1061f268b@linutronix.de
This commit is contained in:
Thomas Weißschuh
2026-07-15 10:49:02 +02:00
committed by Thomas Gleixner
parent 8c0015572c
commit faeff8d416
+2 -4
View File
@@ -3,10 +3,9 @@
config HAVE_GENERIC_VDSO config HAVE_GENERIC_VDSO
bool bool
if HAVE_GENERIC_VDSO
config GENERIC_GETTIMEOFDAY config GENERIC_GETTIMEOFDAY
bool bool
select HAVE_GENERIC_VDSO
help help
This is a generic implementation of gettimeofday vdso. This is a generic implementation of gettimeofday vdso.
Each architecture that enables this feature has to Each architecture that enables this feature has to
@@ -21,7 +20,6 @@ config GENERIC_VDSO_OVERFLOW_PROTECT
config VDSO_GETRANDOM config VDSO_GETRANDOM
bool bool
select HAVE_GENERIC_VDSO
help help
Selected by architectures that support vDSO getrandom(). Selected by architectures that support vDSO getrandom().
endif