diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-15 04:16:31 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-10-20 16:27:28 +0300 |
commit | d9d005f32aac7362a1998f4b7fdf8874e91546bd (patch) | |
tree | 64ac045329df4c2d6d3f7430c1e266a9d0ae42ba /arch/x86/include/asm/fpu/xcr.h | |
parent | 9848fb96839bfd6ad4c00748842ccfd5bd3b0346 (diff) | |
download | linux-d9d005f32aac7362a1998f4b7fdf8874e91546bd.tar.xz |
x86/fpu: Move mxcsr related code to core
No need to expose that to code which only needs the XCR0 accessors.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011539.740012411@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/fpu/xcr.h')
-rw-r--r-- | arch/x86/include/asm/fpu/xcr.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/x86/include/asm/fpu/xcr.h b/arch/x86/include/asm/fpu/xcr.h index 1c7ab8d95da5..79f95d3787e2 100644 --- a/arch/x86/include/asm/fpu/xcr.h +++ b/arch/x86/include/asm/fpu/xcr.h @@ -2,17 +2,6 @@ #ifndef _ASM_X86_FPU_XCR_H #define _ASM_X86_FPU_XCR_H -/* - * MXCSR and XCR definitions: - */ - -static inline void ldmxcsr(u32 mxcsr) -{ - asm volatile("ldmxcsr %0" :: "m" (mxcsr)); -} - -extern unsigned int mxcsr_feature_mask; - #define XCR_XFEATURE_ENABLED_MASK 0x00000000 static inline u64 xgetbv(u32 index) |