[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/3] Do not use DEFINE_RWLOCK Macro
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
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |