aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-08-25 16:39:17 -0400
committerH. Peter Anvin <hpa@zytor.com>2010-08-27 14:13:47 -0400
commita9ce6bc15100023b411f8117e53a016d61889800 (patch)
treec9cb1468fde867fd9bfeb0cb33ffe994b0720aaa /arch/x86/xen
parent72d7c3b33c980843e756681fb4867dc1efd62a76 (diff)
x86, memblock: Replace e820_/_early string with memblock_
1.include linux/memblock.h directly. so later could reduce e820.h reference. 2 this patch is done by sed scripts mainly -v2: use MEMBLOCK_ERROR instead of -1ULL or -1UL Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/mmu.c5
-rw-r--r--arch/x86/xen/setup.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 914f04695ce5..b511f1986911 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -44,6 +44,7 @@
44#include <linux/bug.h> 44#include <linux/bug.h>
45#include <linux/module.h> 45#include <linux/module.h>
46#include <linux/gfp.h> 46#include <linux/gfp.h>
47#include <linux/memblock.h>
47 48
48#include <asm/pgtable.h> 49#include <asm/pgtable.h>
49#include <asm/tlbflush.h> 50#include <asm/tlbflush.h>
@@ -1735,7 +1736,7 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
1735 __xen_write_cr3(true, __pa(pgd)); 1736 __xen_write_cr3(true, __pa(pgd));
1736 xen_mc_issue(PARAVIRT_LAZY_CPU); 1737 xen_mc_issue(PARAVIRT_LAZY_CPU);
1737 1738
1738 reserve_early(__pa(xen_start_info->pt_base), 1739 memblock_x86_reserve_range(__pa(xen_start_info->pt_base),
1739 __pa(xen_start_info->pt_base + 1740 __pa(xen_start_info->pt_base +
1740 xen_start_info->nr_pt_frames * PAGE_SIZE), 1741 xen_start_info->nr_pt_frames * PAGE_SIZE),
1741 "XEN PAGETABLES"); 1742 "XEN PAGETABLES");
@@ -1773,7 +1774,7 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,
1773 1774
1774 pin_pagetable_pfn(MMUEXT_PIN_L3_TABLE, PFN_DOWN(__pa(swapper_pg_dir))); 1775 pin_pagetable_pfn(MMUEXT_PIN_L3_TABLE, PFN_DOWN(__pa(swapper_pg_dir)));
1775 1776
1776 reserve_early(__pa(xen_start_info->pt_base), 1777 memblock_x86_reserve_range(__pa(xen_start_info->pt_base),
1777 __pa(xen_start_info->pt_base + 1778 __pa(xen_start_info->pt_base +
1778 xen_start_info->nr_pt_frames * PAGE_SIZE), 1779 xen_start_info->nr_pt_frames * PAGE_SIZE),
1779 "XEN PAGETABLES"); 1780 "XEN PAGETABLES");
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index ad0047f47cd4..2ac8f29f89cb 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -8,6 +8,7 @@
8#include <linux/sched.h> 8#include <linux/sched.h>
9#include <linux/mm.h> 9#include <linux/mm.h>
10#include <linux/pm.h> 10#include <linux/pm.h>
11#include <linux/memblock.h>
11 12
12#include <asm/elf.h> 13#include <asm/elf.h>
13#include <asm/vdso.h> 14#include <asm/vdso.h>
@@ -61,7 +62,7 @@ char * __init xen_memory_setup(void)
61 * - xen_start_info 62 * - xen_start_info
62 * See comment above "struct start_info" in <xen/interface/xen.h> 63 * See comment above "struct start_info" in <xen/interface/xen.h>
63 */ 64 */
64 reserve_early(__pa(xen_start_info->mfn_list), 65 memblock_x86_reserve_range(__pa(xen_start_info->mfn_list),
65 __pa(xen_start_info->pt_base), 66 __pa(xen_start_info->pt_base),
66 "XEN START INFO"); 67 "XEN START INFO");
67 68