Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Rename .data..mostly and properly handle it in linker script

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Catalin Marinas and committed by
Ralf Baechle
f8bec75a 866d7f56

+2 -1
+1 -1
arch/mips/include/asm/cache.h
··· 17 17 #define SMP_CACHE_SHIFT L1_CACHE_SHIFT 18 18 #define SMP_CACHE_BYTES L1_CACHE_BYTES 19 19 20 - #define __read_mostly __attribute__((__section__(".data.read_mostly"))) 20 + #define __read_mostly __attribute__((__section__(".data..read_mostly"))) 21 21 22 22 #endif /* _ASM_CACHE_H */
+1
arch/mips/kernel/vmlinux.lds.S
··· 74 74 INIT_TASK_DATA(PAGE_SIZE) 75 75 NOSAVE_DATA 76 76 CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) 77 + READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) 77 78 DATA_DATA 78 79 CONSTRUCTORS 79 80 }