x86: Put hot per CPU variables into a struct
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Sep 2022 11:11:01 +0000 (13:11 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Oct 2022 14:41:03 +0000 (16:41 +0200)
commite57ef2ed97c1d078973298658a8096644a1e9e09
tree79cb9a8835ab832a8e8c302abf1ffe0c0ad96c5f
parentfdc9ee7e97aa2c1dfa7ebb092fffec40ffa59108
x86: Put hot per CPU variables into a struct

The layout of per-cpu variables is at the mercy of the compiler. This
can lead to random performance fluctuations from build to build.

Create a structure to hold some of the hottest per-cpu variables,
starting with current_task.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111145.179707194@infradead.org
arch/x86/include/asm/current.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c
arch/x86/kernel/smpboot.c