Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760250AbZEAAD6 (ORCPT ); Thu, 30 Apr 2009 20:03:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760908AbZD3X7N (ORCPT ); Thu, 30 Apr 2009 19:59:13 -0400 Received: from BISCAYNE-ONE-STATION.MIT.EDU ([18.7.7.80]:61114 "EHLO biscayne-one-station.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764600AbZD3X7K (ORCPT ); Thu, 30 Apr 2009 19:59:10 -0400 From: Tim Abbott To: Sam Ravnborg Cc: Linux kernel mailing list , Anders Kaseorg , Waseem Daher , Denys Vlasenko , Jeff Arnold , Kyle McMartin , Helge Deller , linux-parisc@vger.kernel.org, Tim Abbott Subject: [PATCH 5/5] parisc: convert to new generic read_mostly support. Date: Thu, 30 Apr 2009 19:55:19 -0400 Message-Id: <1241135719-9286-6-git-send-email-tabbott@mit.edu> X-Mailer: git-send-email 1.6.2.1 In-Reply-To: <1241135719-9286-5-git-send-email-tabbott@mit.edu> References: <1241135719-9286-1-git-send-email-tabbott@mit.edu> <1241135719-9286-2-git-send-email-tabbott@mit.edu> <1241135719-9286-3-git-send-email-tabbott@mit.edu> <1241135719-9286-4-git-send-email-tabbott@mit.edu> <1241135719-9286-5-git-send-email-tabbott@mit.edu> X-Spam-Flag: NO X-Spam-Score: 0.00 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1915 Lines: 66 Signed-off-by: Tim Abbott Cc: Kyle McMartin Cc: Helge Deller 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(-) diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index 9038f39..cc113d0 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -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" diff --git a/arch/parisc/include/asm/cache.h b/arch/parisc/include/asm/cache.h index 32c2cca..21e0865 100644 --- a/arch/parisc/include/asm/cache.h +++ b/arch/parisc/include/asm/cache.h @@ -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 */ diff --git a/arch/parisc/kernel/head.S b/arch/parisc/kernel/head.S index 0e3d9f9..712d29d 100644 --- a/arch/parisc/kernel/head.S +++ b/arch/parisc/kernel/head.S @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -345,7 +346,7 @@ smp_slave_stext: ENDPROC(stext) #ifndef CONFIG_64BIT - .section .data.read_mostly + __READ_MOSTLY .align 4 .export $global$,data -- 1.6.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/