]> Gentwo Git Trees - linux/.git/commit
vdso: Make vdso_time_data cacheline aligned
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Mon, 3 Mar 2025 11:11:05 +0000 (12:11 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 8 Mar 2025 13:37:39 +0000 (14:37 +0100)
commitfa8152ca221110e14e43040bd442c8140bc2e03c
tree40643d0fdcf17742dc6d1fba0567040e8bbf6e09
parentb69b47a6b5f67ac1074e0a6baac7f07bdc3dceed
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 <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-3-c1b5c69a166f@linutronix.de
include/vdso/datapage.h