commit | d6d6d50f1e801a790a242c80eeda261e36c43b7b | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Mon Mar 28 20:43:21 2022 +0200 |
committer | Borislav Petkov <bp@suse.de> | Wed Mar 30 12:04:09 2022 +0200 |
tree | 537bfef6dd75df1a31abd08c4b96aaa7acf94fdc | |
parent | 781c64bfcb735960717d1cb45428047ff6a5030c [diff] |
x86/fpu/xstate: Consolidate size calculations Use the offset calculation to do the size calculation which avoids yet another series of CPUID instructions for each invocation. [ Fix the FP/SSE only case which missed to take the xstate header into account, as Reported-by: kernel test robot <oliver.sang@intel.com> ] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/87o81pgbp2.ffs@tglx