lkml.org 
[lkml]   [2006]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>

--- a/include/asm-x86_64/cache.h 2006-04-19 12:43:14.000000000 +0200
+++ b/include/asm-x86_64/cache.h 2006-04-19 14:11:50.000000000 +0200
@@ -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
\
 
 \ /
  Last update: 2006-04-19 15:32    [W:0.025 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site