aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/fpu/internal.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-10-15 03:16:21 +0200
committerBorislav Petkov <bp@suse.de>2021-10-20 15:27:27 +0200
commitd06241f52cfe4a0580856ef2cfac90dc7f752cae (patch)
tree06be585119a29661bf4761507e1f1bab46cd98a3 /arch/x86/include/asm/fpu/internal.h
parentx86/fpu: Move context switch and exit to user inlines into sched.h (diff)
downloadlinux-dev-d06241f52cfe4a0580856ef2cfac90dc7f752cae.tar.xz
linux-dev-d06241f52cfe4a0580856ef2cfac90dc7f752cae.zip
x86/fpu: Clean up CPU feature tests
Further disintegration of internal.h: Move the CPU feature tests to a core header and remove the unused one. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20211015011539.401510559@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/fpu/internal.h')
-rw-r--r--arch/x86/include/asm/fpu/internal.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/x86/include/asm/fpu/internal.h b/arch/x86/include/asm/fpu/internal.h
index 398c87c8e199..5da7528b3b2f 100644
--- a/arch/x86/include/asm/fpu/internal.h
+++ b/arch/x86/include/asm/fpu/internal.h
@@ -51,24 +51,6 @@ extern void fpu__resume_cpu(void);
# define WARN_ON_FPU(x) ({ (void)(x); 0; })
#endif
-/*
- * FPU related CPU feature flag helper routines:
- */
-static __always_inline __pure bool use_xsaveopt(void)
-{
- return static_cpu_has(X86_FEATURE_XSAVEOPT);
-}
-
-static __always_inline __pure bool use_xsave(void)
-{
- return static_cpu_has(X86_FEATURE_XSAVE);
-}
-
-static __always_inline __pure bool use_fxsr(void)
-{
- return static_cpu_has(X86_FEATURE_FXSR);
-}
-
extern union fpregs_state init_fpstate;
extern void fpstate_init_user(union fpregs_state *state);