x86/fpu: Provide struct fpu_config
authorThomas Gleixner <tglx@linutronix.de>
Thu, 14 Oct 2021 23:09:29 +0000 (01:09 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Oct 2021 17:17:58 +0000 (19:17 +0200)
commit578971f4e228f386ad4d7ce16e979f2ed922de54
tree971abc05ae64e282d3d96abdd7c9b2788567b402
parent5509cc78080d29b23706dbf076d51691b69f3c79
x86/fpu: Provide struct fpu_config

Provide a struct to store information about the maximum supported and the
default feature set and buffer sizes for both user and kernel space.

This allows quick retrieval of this information for the upcoming support
for dynamically enabled features.

 [ bp: Add vertical spacing between the struct members. ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211014230739.126107370@linutronix.de
arch/x86/include/asm/fpu/types.h
arch/x86/kernel/fpu/core.c