mirror of https://github.com/torvalds/linux.git
x86/smp: Move this_cpu_off to percpu hot section
No functional change. Signed-off-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Uros Bizjak <ubizjak@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250303165246.2175811-12-brgerst@gmail.com
This commit is contained in:
parent
f3856cd343
commit
06aa03056f
|
|
@ -586,7 +586,7 @@ do { \
|
||||||
#include <asm-generic/percpu.h>
|
#include <asm-generic/percpu.h>
|
||||||
|
|
||||||
/* We can use this directly for local CPU (faster). */
|
/* We can use this directly for local CPU (faster). */
|
||||||
DECLARE_PER_CPU_READ_MOSTLY(unsigned long, this_cpu_off);
|
DECLARE_PER_CPU_CACHE_HOT(unsigned long, this_cpu_off);
|
||||||
|
|
||||||
#endif /* !__ASSEMBLY__ */
|
#endif /* !__ASSEMBLY__ */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
DEFINE_PER_CPU_CACHE_HOT(int, cpu_number);
|
DEFINE_PER_CPU_CACHE_HOT(int, cpu_number);
|
||||||
EXPORT_PER_CPU_SYMBOL(cpu_number);
|
EXPORT_PER_CPU_SYMBOL(cpu_number);
|
||||||
|
|
||||||
DEFINE_PER_CPU_READ_MOSTLY(unsigned long, this_cpu_off);
|
DEFINE_PER_CPU_CACHE_HOT(unsigned long, this_cpu_off);
|
||||||
EXPORT_PER_CPU_SYMBOL(this_cpu_off);
|
EXPORT_PER_CPU_SYMBOL(this_cpu_off);
|
||||||
|
|
||||||
unsigned long __per_cpu_offset[NR_CPUS] __ro_after_init;
|
unsigned long __per_cpu_offset[NR_CPUS] __ro_after_init;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue