diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-10-30 04:39:07 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-10-30 04:39:07 -0400 |
commit | 121fc47db6f4868890225e987447ee59a1e1c5b5 (patch) | |
tree | 9b4920d083cae81fbeee1f6085af562f29d94b4e /include/asm-sh/cache.h | |
parent | 36b13d767ad68713ab498d71c8df78ca788bda63 (diff) |
sh: Provide a __read_mostly section wrapper.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/cache.h')
-rw-r--r-- | include/asm-sh/cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-sh/cache.h b/include/asm-sh/cache.h index 0fe7cf9a0433..01e5cf51ba9b 100644 --- a/include/asm-sh/cache.h +++ b/include/asm-sh/cache.h | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) | 20 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) |
21 | 21 | ||
22 | #define __read_mostly __attribute__((__section__(".data.read_mostly"))) | ||
23 | |||
22 | #ifndef __ASSEMBLY__ | 24 | #ifndef __ASSEMBLY__ |
23 | struct cache_info { | 25 | struct cache_info { |
24 | unsigned int ways; /* Number of cache ways */ | 26 | unsigned int ways; /* Number of cache ways */ |