From: Eric Dumazet Date: Thu, 20 Apr 2006 00:36:48 +0000 (+0200) Subject: [PATCH] x86_64: bring back __read_mostly support to linux-2.6.17-rc2 X-Git-Tag: v2.6.17-rc3~62 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b699e36b2d43c1b4288992683e5913d347b5b78;p=linux-2.6 [PATCH] x86_64: bring back __read_mostly support to linux-2.6.17-rc2 It seems latest kernel 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 Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/cache.h b/include/asm-x86_64/cache.h index c8043a1615..f8dff1c675 100644 --- a/include/asm-x86_64/cache.h +++ b/include/asm-x86_64/cache.h @@ -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