]> Gentwo Git Trees - linux/.git/commit
vdso: Move architecture related data before basetime data
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Mon, 3 Mar 2025 11:11:20 +0000 (12:11 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 8 Mar 2025 13:37:41 +0000 (14:37 +0100)
commit97a5a90ca234eaa3de8a6aa44d43de2827393019
treeea5064a1a52134589f8159cab9fbd00418893242
parented0c10f34ffd94d6e0d37b830c232f7ca38ea174
vdso: Move architecture related data before basetime data

Architecture related vdso data is required in the fast path when reading
CLOCK_MONOTONIC or CLOCK_REALTIME. At the moment, this information is
located at the end of the vdso_time_data structure, which is a suboptimal
cache layout.

Move the architecture specific VDSO data right before the basetime
information, which is always required. This change does not have an impact
on architectures with CONFIG_ARCH_HAS_VDSO_DATA=n. Architectures, which
have it enabled, gain a better cache layout.

Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250303-vdso-clock-v1-18-c1b5c69a166f@linutronix.de
include/vdso/datapage.h