sh: Provide a __read_mostly section wrapper.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 30 Oct 2007 08:39:07 +0000 (17:39 +0900)
committerPaul 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

index 0fe7cf9..01e5cf5 100644 (file)
@@ -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 */