]> git.baikalelectronics.ru Git - kernel.git/commit
xen: use common page allocation function in p2m.c
authorJuergen Gross <jgross@suse.com>
Fri, 28 Nov 2014 10:53:52 +0000 (11:53 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 4 Dec 2014 14:08:42 +0000 (14:08 +0000)
commit9a46f1f89c03a54658d8b5c75b317f04c82048ae
treed8fd536589c186c920df0496a5d9d5b54f826eac
parent3c75af30a1456dff03b2568edecba2ed916dcae0
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>
arch/x86/xen/mmu.c
arch/x86/xen/p2m.c