diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2026-07-09 09:28:40 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-07-15 10:49:02 +0200 |
| commit | faeff8d416c4c324030d1296a545024c44ddac51 (patch) | |
| tree | 50dcb0e04a9ee8eb7e2b68737db824ab4ad277fe /lib | |
| parent | 8c0015572c61d1dd0b54f2d035c8b3731dc44b78 (diff) | |
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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vdso/Kconfig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/vdso/Kconfig b/lib/vdso/Kconfig index db87ba34ef19..eedb04974fd5 100644 --- a/lib/vdso/Kconfig +++ b/lib/vdso/Kconfig @@ -3,10 +3,9 @@ config HAVE_GENERIC_VDSO bool -if HAVE_GENERIC_VDSO - config GENERIC_GETTIMEOFDAY bool + select HAVE_GENERIC_VDSO help This is a generic implementation of gettimeofday vdso. Each architecture that enables this feature has to @@ -21,7 +20,6 @@ config GENERIC_VDSO_OVERFLOW_PROTECT config VDSO_GETRANDOM bool + select HAVE_GENERIC_VDSO help Selected by architectures that support vDSO getrandom(). - -endif |
