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] [PATCH 1/3] Do not use DEFINE_RWLOCK Macro

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 1/3] Do not use DEFINE_RWLOCK Macro
From: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Date: Wed, 29 Aug 2007 14:20:05 -0400
Delivery-date: Wed, 29 Aug 2007 11:20:32 -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)
Do not use the DEFINE_RWLOCK macro, as it is not available when compiled against
older kernels, such as SLES9's 2.6.5

Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxx>
diff -r ef25e071a074 unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c
--- a/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c        Wed Aug 
29 13:38:54 2007 -0400
+++ b/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c        Wed Aug 
29 13:41:20 2007 -0400
@@ -15,8 +15,10 @@ struct ap_suspend_info {
 /*
  * Use a rwlock to protect the hypercall page from being executed in AP context
  * while the BSP is re-initializing it after restore.
+ * Do not use the DEFINE_RWLOCK macro, as it is not available when compiled 
against
+ *  older kernels
  */
-static DEFINE_RWLOCK(suspend_lock);
+static rwlock_t suspend_lock = RW_LOCK_UNLOCKED;
 
 /*
  * Spinning prevents, for example, APs touching grant table entries while
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>