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
This commit is contained in:
Thomas Gleixner 2022-09-15 13:11:01 +02:00 • committed by Peter Zijlstra
commit e57ef2ed97
5 changed files with 24 additions and 15 deletions