diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-09-15 13:11:04 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-10-17 16:41:05 +0200 |
commit | c063a217bc0726c2560138229de5673dbb253a02 (patch) | |
tree | 2cd279066be02c20600ed0aa0d9a1e7e496ecb33 /arch/x86/kernel/process_64.c | |
parent | 7443b296e699e6922f5be243c8d2e316de8cacbe (diff) | |
download | lwn-c063a217bc0726c2560138229de5673dbb253a02.tar.gz lwn-c063a217bc0726c2560138229de5673dbb253a02.zip |
x86/percpu: Move current_top_of_stack next to current_task
Extend the struct pcpu_hot cacheline with current_top_of_stack;
another very frequently used value.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111145.493038635@infradead.org
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index c4f6cacf6599..7f807e8bc923 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -618,7 +618,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) * Switch the PDA and FPU contexts. */ raw_cpu_write(pcpu_hot.current_task, next_p); - this_cpu_write(cpu_current_top_of_stack, task_top_of_stack(next_p)); + raw_cpu_write(pcpu_hot.top_of_stack, task_top_of_stack(next_p)); switch_fpu_finish(); |