From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id B5416B8A1F for ; Fri, 24 Jul 2009 19:15:59 +1000 (EST) To: From: Benjamin Herrenschmidt Date: Fri, 24 Jul 2009 19:15:45 +1000 Subject: [PATCH 17/20] powerpc/mm: Move around mmu_gathers definition on 64-bit (v2) In-Reply-To: <1248426902.401617.944220131651.qpush@grosgo> Message-Id: <20090724091559.A55AFDDD1B@ozlabs.org> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The definition for the global structure mmu_gathers, used by generic code, is currently defined in multiple places not including anything used by 64-bit Book3E. This changes it by moving to one place common to all processors. Signed-off-by: Benjamin Herrenschmidt --- v2. Fix issues due to changes in other patches arch/powerpc/mm/init_32.c | 2 -- arch/powerpc/mm/pgtable.c | 2 ++ arch/powerpc/mm/tlb_hash64.c | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) --- linux-work.orig/arch/powerpc/mm/tlb_hash64.c 2009-07-24 18:14:35.000000000 +1000 +++ linux-work/arch/powerpc/mm/tlb_hash64.c 2009-07-24 18:14:51.000000000 +1000 @@ -33,11 +33,6 @@ DEFINE_PER_CPU(struct ppc64_tlb_batch, ppc64_tlb_batch); -/* This is declared as we are using the more or less generic - * arch/powerpc/include/asm/tlb.h file -- tgall - */ -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); - /* * A linux PTE was changed and the corresponding hash table entry * neesd to be flushed. This function will either perform the flush Index: linux-work/arch/powerpc/mm/init_32.c =================================================================== --- linux-work.orig/arch/powerpc/mm/init_32.c 2009-07-24 18:14:35.000000000 +1000 +++ linux-work/arch/powerpc/mm/init_32.c 2009-07-24 18:14:51.000000000 +1000 @@ -54,8 +54,6 @@ #endif #define MAX_LOW_MEM CONFIG_LOWMEM_SIZE -DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); - phys_addr_t total_memory; phys_addr_t total_lowmem; Index: linux-work/arch/powerpc/mm/pgtable.c =================================================================== --- linux-work.orig/arch/powerpc/mm/pgtable.c 2009-07-24 18:14:35.000000000 +1000 +++ linux-work/arch/powerpc/mm/pgtable.c 2009-07-24 18:15:05.000000000 +1000 @@ -30,6 +30,8 @@ #include #include +DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); + #ifdef CONFIG_SMP /*