x86: unify free_init_pages() and free_initmem()
PATCH 3/3 x86: unify free_init_pages() and free_initmem()
From: Pekka Enberg <[email protected]>
Impact: unification
This patch introduces a common arch/x86/mm/init.c and moves the identical free_init_pages() and free_initmem() functions to the file.
Signed-off-by Pekka Enberg <[email protected]>
--- arch/x86/mm/Makefile | 2 +- arch/x86/mm/init.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ arch/x86/mm/init_32.c | 44 -------------------------------------------- arch/x86/mm/init_64.c | 44 -------------------------------------------- 4 files changed, 50 insertions(+), 89 deletions(-) create mode 100644 arch/x86/mm/init.c
arch/x86/mm/Makefile +1 -1
@@ -1,4 +1,4 @@ -obj-y := init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \ +obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \ pat.o pgtable.o gup.o obj-$(CONFIG_X86_32) += pgtable_32.o iomap_32.o
arch/x86/mm/init.c new file +49 -0
49 lines not on this page · raw message
arch/x86/mm/init_32.c +0 -44
50 lines not on this page · raw message
arch/x86/mm/init_64.c +0 -44
50 lines not on this page · raw message
Signature · 1 line
1.5.4.3
Commit-ID: e5b2bb552706ca0e30795ee84caacbb37cec5705 Gitweb: http://git.kernel.org/tip/e5b2bb552706ca0e30795ee84caacbb37cec5705 Author: "Pekka Enberg" <[email protected]> AuthorDate: Tue, 3 Mar 2009 13:15:06 +0200 Commit: Ingo Molnar <[email protected]> CommitDate: Tue, 3 Mar 2009 12:21:18 +0100
x86: unify free_init_pages() and free_initmem()
Impact: unification
This patch introduces a common arch/x86/mm/init.c and moves the identical free_init_pages() and free_initmem() functions to the file.
Signed-off-by Pekka Enberg <[email protected]>
LKML-Reference: <1236078906.2675.18.camel@penberg-laptop>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/mm/Makefile | 2 +- arch/x86/mm/init.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ arch/x86/mm/init_32.c | 44 -------------------------------------------- arch/x86/mm/init_64.c | 44 -------------------------------------------- 4 files changed, 50 insertions(+), 89 deletions(-)
arch/x86/mm/Makefile +1 -1
@@ -1,4 +1,4 @@ -obj-y := init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \ +obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \ pat.o pgtable.o gup.o obj-$(CONFIG_SMP) += tlb.o
arch/x86/mm/init.c new file +49 -0
49 lines not on this page · raw message
arch/x86/mm/init_32.c +0 -44
50 lines not on this page · raw message
arch/x86/mm/init_64.c +0 -44
50 lines not on this page · raw message