diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-09-15 13:11:03 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-10-17 16:41:04 +0200 |
commit | 7443b296e699e6922f5be243c8d2e316de8cacbe (patch) | |
tree | ded4114cf1e1c70d98286916c410fc49a4c46209 /arch/x86/include/asm/current.h | |
parent | 64701838bf0575ef8acb1ad2db5934e864f3e6c3 (diff) | |
download | linux-7443b296e699e6922f5be243c8d2e316de8cacbe.tar.bz2 |
x86/percpu: Move cpu_number next to current_task
Also add cpu_number to the pcpu_hot structure, it is often referenced
and this cacheline is there.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111145.387678283@infradead.org
Diffstat (limited to 'arch/x86/include/asm/current.h')
-rw-r--r-- | arch/x86/include/asm/current.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/current.h b/arch/x86/include/asm/current.h index 0f4b46293c6c..8ac6589e9a1b 100644 --- a/arch/x86/include/asm/current.h +++ b/arch/x86/include/asm/current.h @@ -16,6 +16,7 @@ struct pcpu_hot { struct { struct task_struct *current_task; int preempt_count; + int cpu_number; }; u8 pad[64]; }; |