x86/fpu: Get rid of using_compacted_format()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:01:48 +0000 (14:01 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 15:49:47 +0000 (17:49 +0200)
commit02b93c0b00df222b9ccf7a1fbd0eb59353d0a58c
tree94a80cfbc6a5ef42615283991c954e5ba2901097
parentdbb60ac764581e62f2116c5a6b8926ba3a872dd4
x86/fpu: Get rid of using_compacted_format()

This function is pointlessly global and a complete misnomer because it's
usage is related to both supervisor state checks and compacted format
checks. Remove it and just make the conditions check the XSAVES feature.

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