]> err.no Git - linux-2.6/commitdiff
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 0fe7cf9a04339aec08b34e6232f941e0ab0ae2ee..01e5cf51ba9b38012469e7ceb0b78ab222e42fe5 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 */