Skip to contentSkip to conversation

-mm: make i387 mxcsr_feature_mask __read_mostly

PATCH New Andreas Mohr 1 participant 1 message May 23, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 -mm: make i387 mxcsr_feature_mask __read_mostly

To: Andrew Morton <[email protected]>
Cc: [email protected], Ingo Molnar <[email protected]>
Subject: [PATCH] -mm: make using_apic_timer __read_mostly
User-Agent: Mutt/1.4.2.1i
X-Priority: none

Hello all,

i386 run-tested on 2.6.17-rc4-mm3 (no x86_64 testing possible here).

this might collide with recent i386/x86_64 reunification efforts, though...

arch/i386/kernel/i387.c +1 -1
diff -urN linux-2.6.17-rc4-mm3.orig/arch/i386/kernel/i387.c linux-2.6.17-rc4-mm3.my/arch/i386/kernel/i387.c
@@ -25,7 +25,7 @@
 #define HAVE_HWFP 1
 #endif
 
-static unsigned long mxcsr_feature_mask = 0xffffffff;
+static unsigned long mxcsr_feature_mask __read_mostly = 0xffffffff;
 
 void mxcsr_feature_mask_init(void)
 {
arch/x86_64/kernel/i387.c +1 -1
diff -urN linux-2.6.17-rc4-mm3.orig/arch/x86_64/kernel/i387.c linux-2.6.17-rc4-mm3.my/arch/x86_64/kernel/i387.c
@@ -24,7 +24,7 @@
 #include <asm/ptrace.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)
 {