]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu/xsave: Initialize offset/size cache early
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Mar 2022 13:47:11 +0000 (14:47 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 30 Mar 2022 08:55:44 +0000 (10:55 +0200)
commit76304fe39c596b511acff9be353bfc2025b17ef2
tree86ada905e02508961e8417d1f952b563a9ed446f
parentf47990520bf862c878db2a692199f0f213d1f0a3
x86/fpu/xsave: Initialize offset/size cache early

Reading XSTATE feature information from CPUID over and over does not make
sense. The information has to be cached anyway, so it can be done early.

Prepare for runtime calculation of XSTATE offsets and allow
consolidation of the size calculation functions in a later step.

Rename the function while at it as it does not setup any features.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220324134623.519411939@linutronix.de
arch/x86/kernel/fpu/xstate.c