From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Guthro Subject: [PV-onHVM][Xen][PATCH 2/3] Fix kthread_create Date: Thu, 06 Sep 2007 13:43:51 -0400 Message-ID: <46E03C57.1050308@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020106010606000406000904" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Robert Phillips List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------020106010606000406000904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Signed-off-by: Robert Phillips --------------020106010606000406000904 Content-Type: text/x-patch; name="lm-kthread-xen.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lm-kthread-xen.patch" 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) { --------------020106010606000406000904 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------020106010606000406000904--