All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Guthro <bguthro@virtualiron.com>
To: xen-devel@lists.xensource.com
Cc: Robert Phillips <rphillips@virtualiron.com>
Subject: [PV-onHVM][Xen][PATCH 2/3] Fix kthread_create
Date: Thu, 06 Sep 2007 13:43:51 -0400	[thread overview]
Message-ID: <46E03C57.1050308@virtualiron.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

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@virtualiron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>

[-- Attachment #2: lm-kthread-xen.patch --]
[-- Type: text/x-patch, Size: 850 bytes --]

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)
 {

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2007-09-06 17:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46E03C57.1050308@virtualiron.com \
    --to=bguthro@virtualiron.com \
    --cc=rphillips@virtualiron.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.