x86/fpu: Move MXCSR_DEFAULT to fpu/internal.h
authorIngo Molnar <mingo@kernel.org>
Fri, 24 Apr 2015 01:06:56 +0000 (03:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:31 +0000 (15:47 +0200)
fpu/types.h gets included everywhere, move the MXCSR_DEFAULT to
fpu/internal.h, the place where it's used.

Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/fpu/internal.h
arch/x86/include/asm/fpu/types.h

index 386a8837c3584d3698c39148b9ad1ca87fc24a17..0e9a7a37801a0a43bd6e6f3fc77a506fb7835b76 100644 (file)
@@ -33,6 +33,8 @@ int ia32_setup_frame(int sig, struct ksignal *ksig,
 # define ia32_setup_rt_frame   __setup_rt_frame
 #endif
 
+#define        MXCSR_DEFAULT           0x1f80
+
 extern unsigned int mxcsr_feature_mask;
 extern void fpu__cpu_init(void);
 extern void eager_fpu_init(void);
index cad1c37d9ea2b006b7a2a642d4c62129bbe3b6e4..917d2e56426ab0280aef6afeebf18a62c3b277d6 100644 (file)
@@ -4,8 +4,6 @@
 #ifndef _ASM_X86_FPU_H
 #define _ASM_X86_FPU_H
 
-#define        MXCSR_DEFAULT           0x1f80
-
 struct i387_fsave_struct {
        u32                     cwd;    /* FPU Control Word             */
        u32                     swd;    /* FPU Status Word              */