From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: <linuxppc-dev@ozlabs.org>
Subject: [PATCH 17/20] powerpc/mm: Move around mmu_gathers definition on 64-bit
Date: Thu, 23 Jul 2009 15:59:50 +1000 [thread overview]
Message-ID: <20090723060001.54576DDD1B@ozlabs.org> (raw)
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 <benh@kernel.crashing.org>
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-23 14:24:47.000000000 +1000
+++ linux-work/arch/powerpc/mm/tlb_hash64.c 2009-07-23 14:34:13.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-23 14:41:17.000000000 +1000
+++ linux-work/arch/powerpc/mm/init_32.c 2009-07-23 14:41:19.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-23 14:41:29.000000000 +1000
+++ linux-work/arch/powerpc/mm/pgtable.c 2009-07-23 14:41:38.000000000 +1000
@@ -33,6 +33,8 @@
static DEFINE_PER_CPU(struct pte_freelist_batch *, pte_freelist_cur);
static unsigned long pte_freelist_forced_free;
+DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
+
struct pte_freelist_batch
{
struct rcu_head rcu;
reply other threads:[~2009-07-23 6:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090723060001.54576DDD1B@ozlabs.org \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox