MIPS: Rename .data..mostly and properly handle it in linker script
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 29 Mar 2011 10:40:06 +0000 (11:40 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 10 May 2011 17:15:24 +0000 (18:15 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cache.h
arch/mips/kernel/vmlinux.lds.S

index 650ac9ba734c9bb254baec52f6d076b9ce53583f..b4db69fbc40ce212a557b235679ec0ebf2208060 100644 (file)
@@ -17,6 +17,6 @@
 #define SMP_CACHE_SHIFT                L1_CACHE_SHIFT
 #define SMP_CACHE_BYTES                L1_CACHE_BYTES
 
-#define __read_mostly __attribute__((__section__(".data.read_mostly")))
+#define __read_mostly __attribute__((__section__(".data..read_mostly")))
 
 #endif /* _ASM_CACHE_H */
index 832afbb87588bedcf2b8265495fd44b6874ccabb..e4b0b0bec039299746c41637b2d83a0f9ae693a2 100644 (file)
@@ -74,6 +74,7 @@ SECTIONS
                INIT_TASK_DATA(PAGE_SIZE)
                NOSAVE_DATA
                CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
+               READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
                DATA_DATA
                CONSTRUCTORS
        }