public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64 : bring back __read_mostly support to linux-2.6.17-rc2
@ 2006-04-19 13:30 Eric Dumazet
  0 siblings, 0 replies; only message in thread
From: Eric Dumazet @ 2006-04-19 13:30 UTC (permalink / raw)
  To: Andrew Morton, linux kernel; +Cc: Andi Kleen, Ravikiran G Thirumalai

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

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>


[-- Attachment #2: read_mostly.patch --]
[-- Type: text/plain, Size: 393 bytes --]

--- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-19 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 13:30 [PATCH] x86_64 : bring back __read_mostly support to linux-2.6.17-rc2 Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox