]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu: Calculate the default sizes independently
authorChang S. Bae <chang.seok.bae@intel.com>
Thu, 21 Oct 2021 22:55:25 +0000 (15:55 -0700)
committerBorislav Petkov <bp@suse.de>
Tue, 26 Oct 2021 08:53:02 +0000 (10:53 +0200)
commitf8400714860d237b2ea0ad7fd3697ec0ede8b36f
tree8d7dc44ff61ff3a4b17a5f1d3c761a2da1c10f3c
parent6dd424f894dd54851ef19b4601febdc90f32448a
x86/fpu: Calculate the default sizes independently

When dynamically enabled states are supported the maximum and default sizes
for the kernel buffers and user space interfaces are not longer identical.

Put the necessary calculations in place which only take the default enabled
features into account.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211021225527.10184-22-chang.seok.bae@intel.com
arch/x86/kernel/fpu/xstate.c