Skip to contentSkip to conversation

x86_64 : bring back __read_mostly support to linux-2.6.17-rc2

PATCH New Eric Dumazet 1 participant 1 message Apr 19, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_64 : bring back __read_mostly support to linux-2.6.17-rc2

It seems latest kernel (2.6.17-rc2) has a wrong/missing __read_mostly implementation for x86_64

__read_mostly macro should be declared outside of #if CONFIG_X86_VSMP block

include/asm-x86_64/cache.h +2 -2
@@ -20,8 +20,8 @@
        __attribute__((__section__(".data.page_aligned")))
 #endif
 
-#define __read_mostly __attribute__((__section__(".data.read_mostly")))
-
 #endif
 
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
 #endif