From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Guthro Subject: [PATCH 1/3] Do not use DEFINE_RWLOCK Macro Date: Wed, 29 Aug 2007 14:20:05 -0400 Message-ID: <46D5B8D5.8030605@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010904020707080702060202" 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 List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------010904020707080702060202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------010904020707080702060202 Content-Type: text/x-patch; name="xen-legacy-reboot.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen-legacy-reboot.patch" 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 --------------010904020707080702060202 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 --------------010904020707080702060202--