diff options
author | Juergen Gross <jgross@suse.com> | 2014-11-28 11:53:52 +0100 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-12-04 14:08:42 +0000 |
commit | 7108c9ce8f6e59f775b0c8250dba52b569b6cba2 (patch) | |
tree | d8fd536589c186c920df0496a5d9d5b54f826eac /arch/x86/xen/mmu.c | |
parent | 820c4db2be4ec179210b5c69103a5b2858513e8a (diff) | |
download | linux-stable-7108c9ce8f6e59f775b0c8250dba52b569b6cba2.tar.gz linux-stable-7108c9ce8f6e59f775b0c8250dba52b569b6cba2.tar.bz2 linux-stable-7108c9ce8f6e59f775b0c8250dba52b569b6cba2.zip |
xen: use common page allocation function in p2m.c
In arch/x86/xen/p2m.c three different allocation functions for
obtaining a memory page are used: extend_brk(), alloc_bootmem_align()
or __get_free_page(). Which of those functions is used depends on the
progress of the boot process of the system.
Introduce a common allocation routine selecting the to be called
allocation routine dynamically based on the boot progress. This allows
moving initialization steps without having to care about changing
allocation calls.
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r-- | arch/x86/xen/mmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index a8a1a3d08d4d..b995b871da02 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -1219,6 +1219,8 @@ static void __init xen_pagetable_init(void) paging_init(); #ifdef CONFIG_X86_64 xen_pagetable_p2m_copy(); +#else + xen_revector_p2m_tree(); #endif /* Allocate and initialize top and mid mfn levels for p2m structure */ xen_build_mfn_list_list(); |