ia64/xen-unstable

changeset 16787:a1288419288e

[IA64] domheap: Allocate percpu area from domheap

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Jan 17 12:05:43 2008 -0700 (2008-01-17)
parents a739d3edc185
children 37a3e770a85c
files xen/arch/ia64/linux-xen/mm_contig.c
line diff
     1.1 --- a/xen/arch/ia64/linux-xen/mm_contig.c	Thu Jan 17 12:05:43 2008 -0700
     1.2 +++ b/xen/arch/ia64/linux-xen/mm_contig.c	Thu Jan 17 12:05:43 2008 -0700
     1.3 @@ -193,8 +193,13 @@ per_cpu_init (void)
     1.4  	 */
     1.5  	if (smp_processor_id() == 0) {
     1.6  #ifdef XEN
     1.7 -		cpu_data = alloc_xenheap_pages(get_order(NR_CPUS
     1.8 -							 * PERCPU_PAGE_SIZE));
     1.9 +		struct page_info *page;
    1.10 +		page = alloc_domheap_pages(NULL,
    1.11 +					   get_order(NR_CPUS *
    1.12 +						     PERCPU_PAGE_SIZE), 0);
    1.13 +		if (page == NULL) 
    1.14 +			panic("can't allocate per cpu area.\n");
    1.15 +		cpu_data = page_to_virt(page);
    1.16  #else
    1.17  		cpu_data = __alloc_bootmem(PERCPU_PAGE_SIZE * NR_CPUS,
    1.18  					   PERCPU_PAGE_SIZE, __pa(MAX_DMA_ADDRESS));