aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/cache.h
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2006-03-23 03:00:16 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-23 07:38:10 -0800
commit804f1594cc3deb161e531a43d90c501f0db2635a (patch)
tree81f7a7cea8dbf671c733df379c6582e36459e8da /include/asm-x86_64/cache.h
parent6a2900b67652421b51fe25e4b86ecfec742b1f30 (diff)
downloadkernel_samsung_smdk4412-804f1594cc3deb161e531a43d90c501f0db2635a.zip
kernel_samsung_smdk4412-804f1594cc3deb161e531a43d90c501f0db2635a.tar.gz
kernel_samsung_smdk4412-804f1594cc3deb161e531a43d90c501f0db2635a.tar.bz2
[PATCH] Move read_mostly definition to asm/cache.h
Seems like needless clutter having a bunch of #if defined(CONFIG_$ARCH) in include/linux/cache.h. Move the per architecture section definition to asm/cache.h, and keep the if-not-defined dummy case in linux/cache.h to catch architectures which don't implement the section. Verified that symbols still go in .data.read_mostly on parisc, and the compile doesn't break. Signed-off-by: Kyle McMartin <kyle@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64/cache.h')
-rw-r--r--include/asm-x86_64/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86_64/cache.h b/include/asm-x86_64/cache.h
index 263f0a2..c8043a1 100644
--- a/include/asm-x86_64/cache.h
+++ b/include/asm-x86_64/cache.h
@@ -20,6 +20,8 @@
__attribute__((__section__(".data.page_aligned")))
#endif
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
#endif
#endif