@@ -101,6 +101,9 @@ config ARCH_MAY_HAVE_PC_FDC
depends on BROKEN
default y
+config HAVE_READ_MOSTLY_DATA
+ def_bool y
+
source "init/Kconfig"
source "kernel/Kconfig.freezer"
@@ -28,8 +28,6 @@
#define SMP_CACHE_BYTES L1_CACHE_BYTES
-#define __read_mostly __attribute__((__section__(".data.read_mostly")))
-
void parisc_cache_init(void); /* initializes cache-flushing */
void disable_sr_hashing_asm(int); /* low level support for above */
void disable_sr_hashing(void); /* turns off space register hashing */
@@ -19,6 +19,7 @@
#include <asm/assembly.h>
#include <asm/pgtable.h>
+#include <linux/cache.h>
#include <linux/linkage.h>
#include <linux/init.h>
@@ -345,7 +346,7 @@ smp_slave_stext:
ENDPROC(stext)
#ifndef CONFIG_64BIT
- .section .data.read_mostly
+ __READ_MOSTLY
.align 4
.export $global$,data
Signed-off-by: Tim Abbott <tabbott@mit.edu> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Helge Deller <deller@gmx.de> Cc: linux-parisc@vger.kernel.org --- arch/parisc/Kconfig | 3 +++ arch/parisc/include/asm/cache.h | 2 -- arch/parisc/kernel/head.S | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-)