summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/current.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2022-09-15 13:11:02 +0200
committerPeter Zijlstra <peterz@infradead.org>2022-10-17 16:41:04 +0200
commit64701838bf0575ef8acb1ad2db5934e864f3e6c3 (patch)
treede52a76c0953967f25737d7e1aa3d7e577226bfe /arch/x86/include/asm/current.h
parente57ef2ed97c1d078973298658a8096644a1e9e09 (diff)
downloadlinux-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.h1
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];
};