Messages in this thread Patch in this message | | | From | Tim Abbott <> | Subject | [PATCH 11/11] x86: convert to new generic read_mostly support. | Date | Thu, 30 Apr 2009 20:01:38 -0400 |
| |
Signed-off-by: Tim Abbott <tabbott@mit.edu> Cc: Ingo Molnar <mingo@redhat.com> --- arch/x86/Kconfig | 3 +++ arch/x86/include/asm/cache.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bfff845..f12d0db 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -52,6 +52,9 @@ config OUTPUT_FORMAT default "elf32-i386" if X86_32 default "elf64-x86-64" if X86_64 +config HAVE_READ_MOSTLY_DATA + def_bool y + config ARCH_DEFCONFIG string default "arch/x86/configs/i386_defconfig" if X86_32 diff --git a/arch/x86/include/asm/cache.h b/arch/x86/include/asm/cache.h index 5d367ca..16c1e65 100644 --- a/arch/x86/include/asm/cache.h +++ b/arch/x86/include/asm/cache.h @@ -5,8 +5,6 @@ #define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT) #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) - #ifdef CONFIG_X86_VSMP /* vSMP Internode cacheline shift */ #define INTERNODE_CACHE_SHIFT (12) -- 1.6.2.1
| |