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-devel

[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: Thu, 06 Sep 2007 13:43:51 -0400
Cc: Robert Phillips <rphillips@xxxxxxxxxxxxxxx>
Delivery-date: Thu, 06 Sep 2007 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 <=