Skip to content

Commit f8bec75

Browse files
ctmarinasralfbaechle
authored andcommitted
MIPS: Rename .data..mostly and properly handle it in linker script
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 866d7f5 commit f8bec75

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/mips/include/asm/cache.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
#define SMP_CACHE_SHIFT L1_CACHE_SHIFT
1818
#define SMP_CACHE_BYTES L1_CACHE_BYTES
1919

20-
#define __read_mostly __attribute__((__section__(".data.read_mostly")))
20+
#define __read_mostly __attribute__((__section__(".data..read_mostly")))
2121

2222
#endif /* _ASM_CACHE_H */

‎arch/mips/kernel/vmlinux.lds.S‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ SECTIONS
7474
INIT_TASK_DATA(PAGE_SIZE)
7575
NOSAVE_DATA
7676
CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
77+
READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
7778
DATA_DATA
7879
CONSTRUCTORS
7980
}

0 commit comments

Comments
 (0)