From: Anna-Maria Behnsen Date: Mon, 3 Mar 2025 11:11:05 +0000 (+0100) Subject: vdso: Make vdso_time_data cacheline aligned X-Git-Tag: v6.15-rc1~202^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa8152ca221110e14e43040bd442c8140bc2e03c;p=thirdparty%2Fkernel%2Flinux.git vdso: Make vdso_time_data cacheline aligned vdso_time_data is not cacheline aligned at the moment. When instantiating an array, the start of the second array member is not cache line aligned. This increases the number of the required cache lines which needs to be read when handling e.g. CLOCK_MONOTONIC_RAW, because the data spawns an extra cache line if the previous data does not end at a cache line boundary. Therefore make struct vdso_time_data cacheline aligned. Signed-off-by: Anna-Maria Behnsen Signed-off-by: Nam Cao Signed-off-by: Thomas Weißschuh Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20250303-vdso-clock-v1-3-c1b5c69a166f@linutronix.de --- diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index ed4fb4c06e3ee..dfd98f969f151 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -11,6 +11,7 @@ #include #include +#include #include #include #include @@ -126,7 +127,7 @@ struct vdso_time_data { u32 __unused; struct arch_vdso_time_data arch_data; -}; +} ____cacheline_aligned; /** * struct vdso_rng_data - vdso RNG state information