projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b13d7
)
sh: Provide a __read_mostly section wrapper.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 30 Oct 2007 08:39:07 +0000
(17:39 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 30 Oct 2007 08:39:07 +0000
(17:39 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/cache.h
patch
|
blob
|
history
diff --git
a/include/asm-sh/cache.h
b/include/asm-sh/cache.h
index 0fe7cf9a04339aec08b34e6232f941e0ab0ae2ee..01e5cf51ba9b38012469e7ceb0b78ab222e42fe5 100644
(file)
--- a/
include/asm-sh/cache.h
+++ b/
include/asm-sh/cache.h
@@
-19,6
+19,8
@@
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
+#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+
#ifndef __ASSEMBLY__
struct cache_info {
unsigned int ways; /* Number of cache ways */