summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/cache.h')
-rw-r--r--arch/xtensa/include/asm/cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/cache.h b/arch/xtensa/include/asm/cache.h
index b21fd133ff62..54e147ac26bf 100644
--- a/arch/xtensa/include/asm/cache.h
+++ b/arch/xtensa/include/asm/cache.h
@@ -31,4 +31,10 @@
#define ARCH_DMA_MINALIGN L1_CACHE_BYTES
+/*
+ * R/O after init is actually writable, it cannot go to .rodata
+ * according to vmlinux linker script.
+ */
+#define __ro_after_init __read_mostly
+
#endif /* _XTENSA_CACHE_H */