mirror of https://github.com/torvalds/linux.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 <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
This commit is contained in:
parent
b69b47a6b5
commit
fa8152ca22
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#include <vdso/align.h>
|
#include <vdso/align.h>
|
||||||
#include <vdso/bits.h>
|
#include <vdso/bits.h>
|
||||||
|
#include <vdso/cache.h>
|
||||||
#include <vdso/clocksource.h>
|
#include <vdso/clocksource.h>
|
||||||
#include <vdso/ktime.h>
|
#include <vdso/ktime.h>
|
||||||
#include <vdso/limits.h>
|
#include <vdso/limits.h>
|
||||||
|
|
@ -126,7 +127,7 @@ struct vdso_time_data {
|
||||||
u32 __unused;
|
u32 __unused;
|
||||||
|
|
||||||
struct arch_vdso_time_data arch_data;
|
struct arch_vdso_time_data arch_data;
|
||||||
};
|
} ____cacheline_aligned;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct vdso_rng_data - vdso RNG state information
|
* struct vdso_rng_data - vdso RNG state information
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue