vdso/datastore: Gate time data behind CONFIG_GENERIC_GETTIMEOFDAY
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 26 Aug 2025 06:17:04 +0000 (08:17 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 4 Sep 2025 09:23:49 +0000 (11:23 +0200)
commit7c0c01a216e6d9e1d169c0f6f3b5522e6da708ed
treed9bbe61852044a9a8525d958eb35d3e9b650e314
parentb320789d6883cc00ac78ce83bccbfe7ed58afcf0
vdso/datastore: Gate time data behind CONFIG_GENERIC_GETTIMEOFDAY

When the generic vDSO does not provide time functions, as for example on
riscv32, then the time data store is not necessary.

Avoid allocating these time data pages when not used.

Fixes: df7fcbefa710 ("vdso: Add generic time data storage")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250826-vdso-cleanups-v1-1-d9b65750e49f@linutronix.de
lib/vdso/datastore.c