Skip to contentSkip to conversation

x86: move per-cpu mmu_gathers to mm/init.c

PATCH In review Pekka Enberg 1 participant 2 messages Apr 28, 2009 – Apr 30, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 x86: move per-cpu mmu_gathers to mm/init.c

From: Pekka Enberg <[email protected]>

[ Impact: cleanup ]
---
 arch/x86/mm/init.c    |    3 +++
 arch/x86/mm/init_32.c |    1 -
 arch/x86/mm/init_64.c |    2 --
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/mm/init.c +3 -0
index fd3da1d..388da91 100644
@@ -9,6 +9,9 @@
 #include <asm/sections.h>
 #include <asm/system.h>
 #include <asm/tlbflush.h>
+#include <asm/tlb.h>
+
+DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 
 unsigned long __initdata e820_table_start;
 unsigned long __meminitdata e820_table_end;
arch/x86/mm/init_32.c +0 -1
index ce2ec31..1c74d62 100644
@@ -52,7 +52,6 @@
 #include <asm/page_types.h>
 #include <asm/init.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 unsigned long highstart_pfn, highend_pfn;
 
 static noinline int do_test_wp_bit(void);
arch/x86/mm/init_64.c +0 -2
index abb932f..01172a8 100644
@@ -52,8 +52,6 @@
 
 static unsigned long dma_reserve __initdata;
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 static int __init parse_direct_gbpages_off(char *arg)
 {
 	direct_gbpages = 0;
Signature · 1 line
1.5.6.3
#1 lore raw
Commit-ID:  9518e0e4350a5ea8ca200ce320b28d6284a7b0ce
Gitweb:     http://git.kernel.org/tip/9518e0e4350a5ea8ca200ce320b28d6284a7b0ce
Author:     Pekka Enberg <[email protected]>
AuthorDate: Tue, 28 Apr 2009 16:00:50 +0300
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 30 Apr 2009 10:12:37 +0200

x86: move per-cpu mmu_gathers to mm/init.c

[ Impact: cleanup ]

LKML-Reference: <1240923650.1982.22.camel@penberg-laptop>

---
 arch/x86/mm/init.c    |    3 +++
 arch/x86/mm/init_32.c |    1 -
 arch/x86/mm/init_64.c |    2 --
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/mm/init.c +3 -0
index fedde53..4d67c33 100644
@@ -9,6 +9,9 @@
 #include <asm/sections.h>
 #include <asm/system.h>
 #include <asm/tlbflush.h>
+#include <asm/tlb.h>
+
+DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 
 unsigned long __initdata e820_table_start;
 unsigned long __meminitdata e820_table_end;
arch/x86/mm/init_32.c +0 -1
index a640a7f..fef1d90 100644
@@ -52,7 +52,6 @@
 #include <asm/page_types.h>
 #include <asm/init.h>
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 unsigned long highstart_pfn, highend_pfn;
 
 static noinline int do_test_wp_bit(void);
arch/x86/mm/init_64.c +0 -2
index 1016ea0..6a1a573 100644
@@ -52,8 +52,6 @@
 
 static unsigned long dma_reserve __initdata;
 
-DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
-
 static int __init parse_direct_gbpages_off(char *arg)
 {
 	direct_gbpages = 0;