Skip to contentSkip to conversation

x86: move __VMALLOC_RESERVE to pgtable_32.c

PATCH In review Pekka Enberg 1 participant 2 messages Mar 3, 2009

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

PATCH 1/2 x86: move __VMALLOC_RESERVE to pgtable_32.c

From: Pekka Enberg <[email protected]>

Impact: cleanup

The __VMALLOC_RESERVE global variable is not used in init_32.c. Move that to pgtable_32.c to reduce the diff between init_32.c and init_64.c.

---
 arch/x86/mm/init_32.c    |    2 --
 arch/x86/mm/pgtable_32.c |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/init_32.c +0 -2
index 2cef050..1a2e193 100644
@@ -51,8 +51,6 @@
 #include <asm/cacheflush.h>
 #include <asm/smp.h>
 
-unsigned int __VMALLOC_RESERVE = 128 << 20;
-
 unsigned long max_low_pfn_mapped;
 unsigned long max_pfn_mapped;
 
arch/x86/mm/pgtable_32.c +2 -0
index 0951db9..e4032c8 100644
@@ -20,6 +20,8 @@
 #include <asm/tlb.h>
 #include <asm/tlbflush.h>
 
+unsigned int __VMALLOC_RESERVE = 128 << 20;
+
 /*
  * Associate a virtual page frame with a given physical page frame 
  * and protection flags for that frame.
Signature · 1 line
1.5.4.3
#1 lore raw
Commit-ID:  2b688dfd0a93cf3b17c38feef693361da47b0606
Gitweb:     http://git.kernel.org/tip/2b688dfd0a93cf3b17c38feef693361da47b0606
Author:     "Pekka Enberg" <[email protected]>
AuthorDate: Tue, 3 Mar 2009 12:55:04 +0200
Commit:     Ingo Molnar <[email protected]>
CommitDate: Tue, 3 Mar 2009 12:06:59 +0100

x86: move __VMALLOC_RESERVE to pgtable_32.c

Impact: cleanup

The __VMALLOC_RESERVE global variable is not used in init_32.c. Move that to pgtable_32.c to reduce the diff between init_32.c and init_64.c.

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

---
 arch/x86/mm/init_32.c    |    2 --
 arch/x86/mm/pgtable_32.c |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/init_32.c +0 -2
index 06708ee..5b06a2f 100644
@@ -50,8 +50,6 @@
 #include <asm/setup.h>
 #include <asm/cacheflush.h>
 
-unsigned int __VMALLOC_RESERVE = 128 << 20;
-
 unsigned long max_low_pfn_mapped;
 unsigned long max_pfn_mapped;
 
arch/x86/mm/pgtable_32.c +2 -0
index 0951db9..e4032c8 100644
@@ -20,6 +20,8 @@
 #include <asm/tlb.h>
 #include <asm/tlbflush.h>
 
+unsigned int __VMALLOC_RESERVE = 128 << 20;
+
 /*
  * Associate a virtual page frame with a given physical page frame 
  * and protection flags for that frame.