Skip to content

Commit 1c39517

Browse files
Peter Zijlstratorvalds
authored andcommitted
mm: now that all old mmu_gather code is gone, remove the storage
Fold all the mmu_gather rework patches into one for submission Signed-off-by: Peter Zijlstra <[email protected]> Reported-by: Hugh Dickins <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: David Miller <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Russell King <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Jeff Dike <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Tony Luck <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Mel Gorman <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Namhyung Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ff075d6 commit 1c39517

File tree

21 files changed

+0
-41
lines changed

21 files changed

+0
-41
lines changed

arch/alpha/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
#include <asm/console.h>
3333
#include <asm/tlb.h>
3434

35-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
36-
3735
extern void die_if_kernel(char *,struct pt_regs *,long);
3836

3937
static struct pcb_struct original_pcb;

arch/arm/mm/mmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131

3232
#include "mm.h"
3333

34-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
35-
3634
/*
3735
* empty_zero_page is a special page that is used for
3836
* zero-initialized data and COW.

arch/avr32/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#include <asm/setup.h>
2626
#include <asm/sections.h>
2727

28-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
29-
3028
pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_data;
3129

3230
struct page *empty_zero_page;

arch/cris/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include <linux/bootmem.h>
1414
#include <asm/tlb.h>
1515

16-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
17-
1816
unsigned long empty_zero_page;
1917

2018
extern char _stext, _edata, _etext; /* From linkerscript */

arch/frv/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141

4242
#undef DEBUG
4343

44-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
45-
4644
/*
4745
* BAD_PAGE is the page that is used for page faults when linux
4846
* is out-of-memory. Older versions of linux just did a

arch/ia64/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
#include <asm/mca.h>
3737
#include <asm/paravirt.h>
3838

39-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
40-
4139
extern void ia64_tlb_init (void);
4240

4341
unsigned long MAX_DMA_ADDRESS = PAGE_OFFSET + 0x100000000UL;

arch/m32r/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ extern char __init_begin, __init_end;
3535

3636
pgd_t swapper_pg_dir[1024];
3737

38-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
39-
4038
/*
4139
* Cache of MMU context last used.
4240
*/

arch/m68k/mm/init_mm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
#include <asm/sections.h>
3333
#include <asm/tlb.h>
3434

35-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
36-
3735
pg_data_t pg_data_map[MAX_NUMNODES];
3836
EXPORT_SYMBOL(pg_data_map);
3937

arch/microblaze/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ unsigned int __page_offset;
3232
EXPORT_SYMBOL(__page_offset);
3333

3434
#else
35-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
36-
3735
static int init_bootmem_done;
3836
#endif /* CONFIG_MMU */
3937

arch/mips/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@
6464

6565
#endif /* CONFIG_MIPS_MT_SMTC */
6666

67-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
68-
6967
/*
7068
* We have up to 8 empty zeroed pages so we can map one of the right colour
7169
* when needed. This is necessary only on R4000 / R4400 SC and MC versions

arch/mn10300/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
#include <asm/tlb.h>
3838
#include <asm/sections.h>
3939

40-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
41-
4240
unsigned long highstart_pfn, highend_pfn;
4341

4442
#ifdef CONFIG_MN10300_HAS_ATOMIC_OPS_UNIT

arch/parisc/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
#include <asm/mmzone.h>
3232
#include <asm/sections.h>
3333

34-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
35-
3634
extern int data_start;
3735

3836
#ifdef CONFIG_DISCONTIGMEM

arch/s390/mm/pgtable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ struct rcu_table_freelist {
3636
((PAGE_SIZE - sizeof(struct rcu_table_freelist)) \
3737
/ sizeof(unsigned long))
3838

39-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
4039
static DEFINE_PER_CPU(struct rcu_table_freelist *, rcu_table_freelist);
4140

4241
static void __page_table_free(struct mm_struct *mm, unsigned long *table);

arch/score/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
#include <asm/sections.h>
3939
#include <asm/tlb.h>
4040

41-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
42-
4341
unsigned long empty_zero_page;
4442
EXPORT_SYMBOL_GPL(empty_zero_page);
4543

arch/sh/mm/init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <asm/cache.h>
2929
#include <asm/sizes.h>
3030

31-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
3231
pgd_t swapper_pg_dir[PTRS_PER_PGD];
3332

3433
void __init generic_mem_init(void)

arch/sparc/mm/init_32.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
#include <asm/prom.h>
3838
#include <asm/leon.h>
3939

40-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
41-
4240
unsigned long *sparc_valid_addr_bitmap;
4341
EXPORT_SYMBOL(sparc_valid_addr_bitmap);
4442

arch/tile/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ unsigned long VMALLOC_RESERVE = CONFIG_VMALLOC_RESERVE;
6060
EXPORT_SYMBOL(VMALLOC_RESERVE);
6161
#endif
6262

63-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
64-
6563
/* Create an L2 page table */
6664
static pte_t * __init alloc_pte(void)
6765
{

arch/um/kernel/smp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#include "asm/pgalloc.h"
88
#include "asm/tlb.h"
99

10-
/* For some reason, mmu_gathers are referenced when CONFIG_SMP is off. */
11-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
12-
1310
#ifdef CONFIG_SMP
1411

1512
#include "linux/sched.h"

arch/unicore32/mm/mmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030

3131
#include "mm.h"
3232

33-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
34-
3533
/*
3634
* empty_zero_page is a special page that is used for
3735
* zero-initialized data and COW.

arch/x86/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include <asm/tlb.h>
1717
#include <asm/proto.h>
1818

19-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
20-
2119
unsigned long __initdata pgt_buf_start;
2220
unsigned long __meminitdata pgt_buf_end;
2321
unsigned long __meminitdata pgt_buf_top;

arch/xtensa/mm/mmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <asm/mmu_context.h>
1515
#include <asm/page.h>
1616

17-
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
18-
1917
void __init paging_init(void)
2018
{
2119
memset(swapper_pg_dir, 0, PAGE_SIZE);

0 commit comments

Comments
 (0)