diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-08-25 16:39:17 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-08-27 14:13:47 -0400 |
commit | a9ce6bc15100023b411f8117e53a016d61889800 (patch) | |
tree | c9cb1468fde867fd9bfeb0cb33ffe994b0720aaa /arch/x86/xen/mmu.c | |
parent | 72d7c3b33c980843e756681fb4867dc1efd62a76 (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/mmu.c')
-rw-r--r-- | arch/x86/xen/mmu.c | 5 |
1 files changed, 3 insertions, 2 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"); |