|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] domheap: Allocate percpu area from
# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1200596743 25200
# Node ID a1288419288ef009b179f9fd6c656666611203ee
# Parent a739d3edc185f0ddd5c3eaba97916c3ab3476ff0
[IA64] domheap: Allocate percpu area from domheap
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
xen/arch/ia64/linux-xen/mm_contig.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff -r a739d3edc185 -r a1288419288e xen/arch/ia64/linux-xen/mm_contig.c
--- a/xen/arch/ia64/linux-xen/mm_contig.c Thu Jan 17 12:05:43 2008 -0700
+++ b/xen/arch/ia64/linux-xen/mm_contig.c Thu Jan 17 12:05:43 2008 -0700
@@ -193,8 +193,13 @@ per_cpu_init (void)
*/
if (smp_processor_id() == 0) {
#ifdef XEN
- cpu_data = alloc_xenheap_pages(get_order(NR_CPUS
- * PERCPU_PAGE_SIZE));
+ struct page_info *page;
+ page = alloc_domheap_pages(NULL,
+ get_order(NR_CPUS *
+ PERCPU_PAGE_SIZE), 0);
+ if (page == NULL)
+ panic("can't allocate per cpu area.\n");
+ cpu_data = page_to_virt(page);
#else
cpu_data = __alloc_bootmem(PERCPU_PAGE_SIZE * NR_CPUS,
PERCPU_PAGE_SIZE,
__pa(MAX_DMA_ADDRESS));
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [IA64] domheap: Allocate percpu area from domheap,
Xen patchbot-unstable <=
|
|
|
|
|