diff options
author | Tejun Heo <tj@kernel.org> | 2011-07-12 05:16:06 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-07-14 14:47:53 -0400 |
commit | 24aa07882b672fff2da2f5c955759f0bd13d32d5 (patch) | |
tree | e6dad38048ede1dbb9ad3c7fffcc4b37e72274a8 /arch/x86/xen/mmu.c | |
parent | c378ddd53f9b8832a46fd4fec050a97fc2269858 (diff) |
memblock, x86: Replace memblock_x86_reserve/free_range() with generic ones
Other than sanity check and debug message, the x86 specific version of
memblock reserve/free functions are simple wrappers around the generic
versions - memblock_reserve/free().
This patch adds debug messages with caller identification to the
generic versions and replaces x86 specific ones and kills them.
arch/x86/include/asm/memblock.h and arch/x86/mm/memblock.c are empty
after this change and removed.
Signed-off-by: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1310462166-31469-14-git-send-email-tj@kernel.org
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r-- | arch/x86/xen/mmu.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 0ccccb67a993..ad54fa10f8a2 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -1720,10 +1720,8 @@ pgd_t * __init xen_setup_kernel_pagetable(pgd_t *pgd, | |||
1720 | __xen_write_cr3(true, __pa(pgd)); | 1720 | __xen_write_cr3(true, __pa(pgd)); |
1721 | xen_mc_issue(PARAVIRT_LAZY_CPU); | 1721 | xen_mc_issue(PARAVIRT_LAZY_CPU); |
1722 | 1722 | ||
1723 | memblock_x86_reserve_range(__pa(xen_start_info->pt_base), | 1723 | memblock_reserve(__pa(xen_start_info->pt_base), |
1724 | __pa(xen_start_info->pt_base + | 1724 | xen_start_info->nr_pt_frames * PAGE_SIZE); |
1725 | xen_start_info->nr_pt_frames * PAGE_SIZE), | ||
1726 | "XEN PAGETABLES"); | ||
1727 | 1725 | ||
1728 | return pgd; | 1726 | return pgd; |
1729 | } | 1727 | } |
@@ -1799,10 +1797,8 @@ pgd_t * __init xen_setup_kernel_pagetable(pgd_t *pgd, | |||
1799 | PFN_DOWN(__pa(initial_page_table))); | 1797 | PFN_DOWN(__pa(initial_page_table))); |
1800 | xen_write_cr3(__pa(initial_page_table)); | 1798 | xen_write_cr3(__pa(initial_page_table)); |
1801 | 1799 | ||
1802 | memblock_x86_reserve_range(__pa(xen_start_info->pt_base), | 1800 | memblock_reserve(__pa(xen_start_info->pt_base), |
1803 | __pa(xen_start_info->pt_base + | 1801 | xen_start_info->nr_pt_frames * PAGE_SIZE)); |
1804 | xen_start_info->nr_pt_frames * PAGE_SIZE), | ||
1805 | "XEN PAGETABLES"); | ||
1806 | 1802 | ||
1807 | return initial_page_table; | 1803 | return initial_page_table; |
1808 | } | 1804 | } |