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

xen-devel

[Top] [All Lists]

[Xen-devel] [PV-onHVM][Xen][PATCH 2/3] Fix kthread_create

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PV-onHVM][Xen][PATCH 2/3] Fix kthread_create
From: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Date: 2007年9月06日 13:43:51 -0400
Cc: Robert Phillips <rphillips@xxxxxxxxxxxxxxx>
Delivery-date: 2007年9月06日 10:45:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.5 (X11/20070719)
This is the xen part of the kthread patch
This part simply fixes a compiler warning we get when compiling for a uniprocessor guest kernel.
Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Signed-off-by: Robert Phillips <rphillips@xxxxxxxxxxxxxxx>
diff -r a0370a9131be unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c
--- a/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c Thu Sep 
06 09:43:42 2007 -0400
+++ b/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c Thu Sep 
06 09:44:14 2007 -0400
@@ -17,12 +17,14 @@ struct ap_suspend_info {
 atomic_t nr_spinning;
 };
 
+
 /*
 * Use a rwlock to protect the hypercall page from being executed in AP context
 * while the BSP is re-initializing it after restore.
 */
 static DEFINE_RWLOCK(suspend_lock);
 
+#ifdef CONFIG_SMP
 /*
 * Spinning prevents, for example, APs touching grant table entries while
 * the shared grant table is not mapped into the address space imemdiately
@@ -47,6 +49,8 @@ static void ap_suspend(void *_info)
 mb();
 atomic_dec(&info->nr_spinning);
 }
+
+#endif
 
 static int bp_suspend(void)
 {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PV-onHVM][Xen][PATCH 2/3] Fix kthread_create, Ben Guthro <=
Previous by Date: [Xen-devel] [PV-onHVM][linux-2.6.18-xen.hg][PATCH 1/3] Fix kthread_create , Ben Guthro
Next by Date: Re: [Xen-devel] VM start time slows with large number of VMs , Daniel P. Berrange
Previous by Thread: [Xen-devel] [PV-onHVM][linux-2.6.18-xen.hg][PATCH 1/3] Fix kthread_create , Ben Guthro
Next by Thread: [Xen-devel] [PV-onHVM][PATCH 3/3] Fix bad symbol reference , Ben Guthro
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /