hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/xtensa/include/asm/cache.h
....@@ -11,7 +11,7 @@
1111 #ifndef _XTENSA_CACHE_H
1212 #define _XTENSA_CACHE_H
1313
14
-#include <variant/core.h>
14
+#include <asm/core.h>
1515
1616 #define L1_CACHE_SHIFT XCHAL_DCACHE_LINEWIDTH
1717 #define L1_CACHE_BYTES XCHAL_DCACHE_LINESIZE
....@@ -31,4 +31,10 @@
3131
3232 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
3333
34
+/*
35
+ * R/O after init is actually writable, it cannot go to .rodata
36
+ * according to vmlinux linker script.
37
+ */
38
+#define __ro_after_init __read_mostly
39
+
3440 #endif /* _XTENSA_CACHE_H */