mm: now that all old mmu_gather code is gone, remove the storage
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 25 May 2011 00:11:58 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:16 +0000 (08:39 -0700)
Fold all the mmu_gather rework patches into one for submission

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reported-by: Hugh Dickins <hughd@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Miller <davem@davemloft.net>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Tony Luck <tony.luck@intel.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
21 files changed:
arch/alpha/mm/init.c
arch/arm/mm/mmu.c
arch/avr32/mm/init.c
arch/cris/mm/init.c
arch/frv/mm/init.c
arch/ia64/mm/init.c
arch/m32r/mm/init.c
arch/m68k/mm/init_mm.c
arch/microblaze/mm/init.c
arch/mips/mm/init.c
arch/mn10300/mm/init.c
arch/parisc/mm/init.c
arch/s390/mm/pgtable.c
arch/score/mm/init.c
arch/sh/mm/init.c
arch/sparc/mm/init_32.c
arch/tile/mm/init.c
arch/um/kernel/smp.c
arch/unicore32/mm/mmu.c
arch/x86/mm/init.c
arch/xtensa/mm/mmu.c

index 86425ab53bf5d1afa9bd0d4dddcb2e8543b621e4..69d0c5761e2f206d5de46da70703ca22e940ed08 100644 (file)
@@ -32,8 +32,6 @@
 #include <asm/console.h>
 #include <asm/tlb.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 extern void die_if_kernel(char *,struct pt_regs *,long);
 
 static struct pcb_struct original_pcb;
index 6cf76b3b68d1f374fcbc6be0c38224161f7db477..08a92368d9d3db6a62c6d85c7559ea03c26d1a05 100644 (file)
@@ -31,8 +31,6 @@
 
 #include "mm.h"
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /*
  * empty_zero_page is a special page that is used for
  * zero-initialized data and COW.
index a7314d44b17ba5a2afd1bd83b3edaf8cea222c33..2798c2d4a1cf9c79e43df9df28378394d0cdd60a 100644 (file)
@@ -25,8 +25,6 @@
 #include <asm/setup.h>
 #include <asm/sections.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_data;
 
 struct page *empty_zero_page;
index df33ab89d70f0083c99380db30faaa8114d7512e..d72ab58fd83e743cdeba8cac08e02634cc8f552b 100644 (file)
@@ -13,8 +13,6 @@
 #include <linux/bootmem.h>
 #include <asm/tlb.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 unsigned long empty_zero_page;
 
 extern char _stext, _edata, _etext; /* From linkerscript */
index ed64588ac3a76662935dc1fddd1b9e015ebaa475..fbe5f0dbae06eb588d3d6be5106e5ffeeaebdf9b 100644 (file)
@@ -41,8 +41,6 @@
 
 #undef DEBUG
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /*
  * BAD_PAGE is the page that is used for page faults when linux
  * is out-of-memory. Older versions of linux just did a
index ed41759efcac3b76e44d9a6b87c0c379448b4c5c..00cb0e26c64e02cd9663c381fa359e22f6c8104a 100644 (file)
@@ -36,8 +36,6 @@
 #include <asm/mca.h>
 #include <asm/paravirt.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 extern void ia64_tlb_init (void);
 
 unsigned long MAX_DMA_ADDRESS = PAGE_OFFSET + 0x100000000UL;
index 73e2205ebf5afba2c17ca848701c0ae026f52fab..78b660e903da0d38ffba80724271b56dc9f1e3f7 100644 (file)
@@ -35,8 +35,6 @@ extern char __init_begin, __init_end;
 
 pgd_t swapper_pg_dir[1024];
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /*
  * Cache of MMU context last used.
  */
index 8bc842554e5b4618ad3e77208dc5872cd184fef2..9113c2f1760735f8134aee0ab0e6ff7a8aea9b7a 100644 (file)
@@ -32,8 +32,6 @@
 #include <asm/sections.h>
 #include <asm/tlb.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 pg_data_t pg_data_map[MAX_NUMNODES];
 EXPORT_SYMBOL(pg_data_map);
 
index c8437866d3b75f3bde5d7c5fad00f9d624e9d58e..213f2d67166960de3a966e7443136c0b934faaa6 100644 (file)
@@ -32,8 +32,6 @@ unsigned int __page_offset;
 EXPORT_SYMBOL(__page_offset);
 
 #else
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 static int init_bootmem_done;
 #endif /* CONFIG_MMU */
 
index 279599e9a779fa80fe4e237d353aa5fe916dedab..1aadeb42c5a59ebd3f696478f29252e77adeea42 100644 (file)
@@ -64,8 +64,6 @@
 
 #endif /* CONFIG_MIPS_MT_SMTC */
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /*
  * We have up to 8 empty zeroed pages so we can map one of the right colour
  * when needed.  This is necessary only on R4000 / R4400 SC and MC versions
index 48907cc3bdb77311526c1b1ca173b20983091f8d..13801824e3ee298afda7db2ee5d0613266ed6ccd 100644 (file)
@@ -37,8 +37,6 @@
 #include <asm/tlb.h>
 #include <asm/sections.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 unsigned long highstart_pfn, highend_pfn;
 
 #ifdef CONFIG_MN10300_HAS_ATOMIC_OPS_UNIT
index c5c9c65e502dc11fdacf00e5580cdf9f24f4d4b2..82f364e209fc5a059f1be77fd5563e7c4a70c122 100644 (file)
@@ -31,8 +31,6 @@
 #include <asm/mmzone.h>
 #include <asm/sections.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 extern int  data_start;
 
 #ifdef CONFIG_DISCONTIGMEM
index 8d4330642512554edffaccd51cd7954f18897e1d..14c6fae6fe6ba61e8ae0afbdfdd821464ae3a00b 100644 (file)
@@ -36,7 +36,6 @@ struct rcu_table_freelist {
        ((PAGE_SIZE - sizeof(struct rcu_table_freelist)) \
          / sizeof(unsigned long))
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 static DEFINE_PER_CPU(struct rcu_table_freelist *, rcu_table_freelist);
 
 static void __page_table_free(struct mm_struct *mm, unsigned long *table);
index 50fdec54c70a75c6aabd281263139f4dca54a6ef..cee6bce1e30c3663490e05d66725f89c907e62a9 100644 (file)
@@ -38,8 +38,6 @@
 #include <asm/sections.h>
 #include <asm/tlb.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 unsigned long empty_zero_page;
 EXPORT_SYMBOL_GPL(empty_zero_page);
 
index 0d3f912e3334b1ecd07e5ec7c34b9ee84326bb56..58a93fb3d965055739e8484f0a1045bf338e0194 100644 (file)
@@ -28,7 +28,6 @@
 #include <asm/cache.h>
 #include <asm/sizes.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 pgd_t swapper_pg_dir[PTRS_PER_PGD];
 
 void __init generic_mem_init(void)
index 28c2cc81c9a9334de67fa27d08099b9230f92405..ca217327e8d27bb41c7fe1dac29be90e65919d41 100644 (file)
@@ -37,8 +37,6 @@
 #include <asm/prom.h>
 #include <asm/leon.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 unsigned long *sparc_valid_addr_bitmap;
 EXPORT_SYMBOL(sparc_valid_addr_bitmap);
 
index d6e87fda2fb25d65449553253522f611a41d86bf..4e10c4023028181f9700143ab29738b8e0a10a84 100644 (file)
@@ -60,8 +60,6 @@ unsigned long VMALLOC_RESERVE = CONFIG_VMALLOC_RESERVE;
 EXPORT_SYMBOL(VMALLOC_RESERVE);
 #endif
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /* Create an L2 page table */
 static pte_t * __init alloc_pte(void)
 {
index eefb107d2d734856c376f973913a29ddf18acae7..155206a6690879da2e6521c7604d74ad8f9e52a0 100644 (file)
@@ -7,9 +7,6 @@
 #include "asm/pgalloc.h"
 #include "asm/tlb.h"
 
-/* For some reason, mmu_gathers are referenced when CONFIG_SMP is off. */
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 #ifdef CONFIG_SMP
 
 #include "linux/sched.h"
index db2d334941b41dd7d1527107ab08bf6e03e98e1a..3e5c3e5a0b4542a99cb1e6bda573ab3dfc002dcc 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "mm.h"
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 /*
  * empty_zero_page is a special page that is used for
  * zero-initialized data and COW.
index 37b8b0fe8320952c89158d29a508568affbd8c8e..30326443ab81d9189224cf0c373ded68da51332d 100644 (file)
@@ -16,8 +16,6 @@
 #include <asm/tlb.h>
 #include <asm/proto.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 unsigned long __initdata pgt_buf_start;
 unsigned long __meminitdata pgt_buf_end;
 unsigned long __meminitdata pgt_buf_top;
index 4bb91a970f1f48eee6919e5104c8075f0481f71e..ca81654f3ec2c34e95f9ec8585c050ad1324f161 100644 (file)
@@ -14,8 +14,6 @@
 #include <asm/mmu_context.h>
 #include <asm/page.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 void __init paging_init(void)
 {
        memset(swapper_pg_dir, 0, PAGE_SIZE);