Parcourir la source

[PATCH] x86: make i387 mxcsr_feature_mask __read_mostly

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andreas Mohr il y a 19 ans
Parent
commit
7b0c2d9218
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      arch/i386/kernel/i387.c
  2. 1 1
      arch/x86_64/kernel/i387.c

+ 1 - 1
arch/i386/kernel/i387.c

@@ -25,7 +25,7 @@
 #define HAVE_HWFP 1
 #define HAVE_HWFP 1
 #endif
 #endif
 
 
-static unsigned long mxcsr_feature_mask = 0xffffffff;
+static unsigned long mxcsr_feature_mask __read_mostly = 0xffffffff;
 
 
 void mxcsr_feature_mask_init(void)
 void mxcsr_feature_mask_init(void)
 {
 {

+ 1 - 1
arch/x86_64/kernel/i387.c

@@ -24,7 +24,7 @@
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 
 
-unsigned int mxcsr_feature_mask = 0xffffffff;
+unsigned int mxcsr_feature_mask __read_mostly = 0xffffffff;
 
 
 void mxcsr_feature_mask_init(void)
 void mxcsr_feature_mask_init(void)
 {
 {