summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/setup.c
diff options
context:
space:
mode:
authorJuergen Gross2014-11-28 11:53:52 +0100
committerDavid Vrabel2014-12-04 15:08:42 +0100
commit7108c9ce8f6e59f775b0c8250dba52b569b6cba2 (patch)
treed8fd536589c186c920df0496a5d9d5b54f826eac /arch/x86/xen/setup.c
parentxen: Make functions static (diff)
downloadkernel-qcow2-linux-7108c9ce8f6e59f775b0c8250dba52b569b6cba2.tar.gz
kernel-qcow2-linux-7108c9ce8f6e59f775b0c8250dba52b569b6cba2.tar.xz
kernel-qcow2-linux-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/setup.c')
0 files changed, 0 insertions, 0 deletions