linux_dsm_epyc7002/arch/x86/kernel/fpu
Cyrill Gorcunov 446e693ca3 x86/fpu: Use XFEATURE_FP/SSE enum values instead of hardcoded numbers
When setting up sizes and offsets for legacy header entries the code uses
hardcoded 0/1 instead of the corresponding enum values XFEATURE_FP and
XFEATURE_SSE.

Replace the hardcoded numbers which enhances readability of the code and
also makes this code the first user of those enum values..

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20191101130153.GG1615@uranus.lan
2019-11-04 22:10:07 +01:00
..
bugs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
core.c x86/fpu: Remove the fpu__save() export 2019-06-17 12:21:26 +02:00
init.c x86/fpu: Inline fpu__xstate_clear_all_cpu_caps() 2019-07-07 12:01:47 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
regset.c x86/fpu: Remove fpu->initialized 2019-04-10 15:42:40 +02:00
signal.c x86/fpu: Update kernel's FPU state before using for the fsave header 2019-06-08 11:45:15 +02:00
xstate.c x86/fpu: Use XFEATURE_FP/SSE enum values instead of hardcoded numbers 2019-11-04 22:10:07 +01:00