Skip to contentSkip to conversation

Fix kthread_create

PATCH In review Ben Guthro 1 participant 1 message Sep 6, 2007

lore
Share & tools
lore

Ben Guthro

author
#0 lore raw

PATCH 2/3 Fix kthread_create

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.

unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c +4 -0
diff -r a0370a9131be unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c
@@ -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
[email protected]
http://lists.xensource.com/xen-devel