WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] domheap: Allocate percpu area from

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] domheap: Allocate percpu area from domheap
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Jan 2008 01:11:14 -0800
Delivery-date: Wed, 23 Jan 2008 01:17:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=