Browse Source

sh: Provide a __read_mostly section wrapper.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 18 years ago
parent
commit
121fc47db6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/asm-sh/cache.h

+ 2 - 0
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 */