Skip to content

Commit

Permalink
[PATCH] x86_64: bring back __read_mostly support to linux-2.6.17-rc2
Browse files Browse the repository at this point in the history
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 <dada1@cosmosbay.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Eric Dumazet authored and Linus Torvalds committed Apr 20, 2006
1 parent 18bd057 commit 0b699e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86_64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b699e3

Please sign in to comment.