[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] unmodified drivers: use upstream sync_bitops if available



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1331894106 -3600
# Node ID 46bf3ab42baf922bdd43d8cbe672ae1b18e31ed9
# Parent  e4460795ee6605fe58ce6d00acc6a747c21429f5
unmodified drivers: use upstream sync_bitops if available

The forward ported xenlinux sources in openSuSE 12.2 were switched from
the old synch_bitops to the sync_bitops since kernel version 3.3. Add
compat macros to use either old or new helpers depending on used kernel
source version.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---


diff -r e4460795ee66 -r 46bf3ab42baf 
unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
--- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Fri Mar 
16 11:34:41 2012 +0100
+++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Fri Mar 
16 11:35:06 2012 +0100
@@ -161,4 +161,14 @@
 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
 #endif
 
+#ifdef sync_test_bit
+#define synch_change_bit               sync_change_bit
+#define synch_clear_bit                        sync_clear_bit
+#define synch_set_bit                  sync_set_bit
+#define synch_test_and_change_bit      sync_test_and_change_bit
+#define synch_test_and_clear_bit       sync_test_and_clear_bit
+#define synch_test_and_set_bit         sync_test_and_set_bit
+#define synch_test_bit                 sync_test_bit
 #endif
+
+#endif

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.