diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-09-15 13:11:02 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-10-17 16:41:04 +0200 |
commit | 64701838bf0575ef8acb1ad2db5934e864f3e6c3 (patch) | |
tree | de52a76c0953967f25737d7e1aa3d7e577226bfe /arch/x86/include/asm/current.h | |
parent | e57ef2ed97c1d078973298658a8096644a1e9e09 (diff) | |
download | linux-64701838bf0575ef8acb1ad2db5934e864f3e6c3.tar.bz2 |
x86/percpu: Move preempt_count next to current_task
Add preempt_count to pcpu_hot, since it is once of the most used
per-cpu variables.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111145.284170644@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 63c42ac3cd86..0f4b46293c6c 100644 --- a/arch/x86/include/asm/current.h +++ b/arch/x86/include/asm/current.h @@ -15,6 +15,7 @@ struct pcpu_hot { union { struct { struct task_struct *current_task; + int preempt_count; }; u8 pad[64]; }; |