commit | 121fc47db6f4868890225e987447ee59a1e1c5b5 | [log] [tgz] |
---|---|---|
author | Paul Mundt <lethal@linux-sh.org> | Tue Oct 30 17:39:07 2007 +0900 |
committer | Paul Mundt <lethal@linux-sh.org> | Tue Oct 30 17:39:07 2007 +0900 |
tree | 9b4920d083cae81fbeee1f6085af562f29d94b4e | |
parent | 36b13d767ad68713ab498d71c8df78ca788bda63 [diff] [blame] |
sh: Provide a __read_mostly section wrapper. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
diff --git a/include/asm-sh/cache.h b/include/asm-sh/cache.h index 0fe7cf9..01e5cf5 100644 --- 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 */