[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [BALLOON] Ifdef some x86-specific balloon init code.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1168018774 0 # Node ID 12a441c7b5c5fcab0505b04bd7212b0fda5f2492 # Parent c75883680f28f9815a683b18402c50c0ab2438b4 [BALLOON] Ifdef some x86-specific balloon init code. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-) diff -r c75883680f28 -r 12a441c7b5c5 linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Fri Jan 05 17:24:55 2007 +0000 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Fri Jan 05 17:39:34 2007 +0000 @@ -446,8 +446,10 @@ static struct notifier_block xenstore_no static int __init balloon_init(void) { +#ifdef CONFIG_X86 unsigned long pfn; struct page *page; +#endif if (!is_running_on_xen()) return -ENODEV; @@ -476,13 +478,15 @@ static int __init balloon_init(void) balloon_pde->write_proc = balloon_write; #endif balloon_sysfs_init(); - + +#ifdef CONFIG_X86 /* Initialise the balloon with excess memory space. */ for (pfn = xen_start_info->nr_pages; pfn < max_pfn; pfn++) { page = pfn_to_page(pfn); if (!PageReserved(page)) balloon_append(page); } +#endif target_watch.callback = watch_target; xenstore_notifier.notifier_call = balloon_init_watcher; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |