git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
linux
/
cache.h
diff --git
a/include/linux/cache.h
b/include/linux/cache.h
index
cc4b3aa
..
d22e632
100644
(file)
--- a/
include/linux/cache.h
+++ b/
include/linux/cache.h
@@
-13,7
+13,9
@@
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#endif
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#endif
-#ifndef __read_mostly
+#if defined(CONFIG_X86) || defined(CONFIG_SPARC64) || defined(CONFIG_IA64) || defined(CONFIG_PARISC)
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+#else
#define __read_mostly
#endif
#define __read_mostly
#endif