aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/asm-sh/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-sh/cache.h b/include/asm-sh/cache.h
index 0fe7cf9a043..01e5cf51ba9 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 */