[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.1-testing] unmodified drivers: use upstream sync_bitops if available
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1337010658 -3600 # Node ID bb1ab1475ce8ed72e5ea168484419eecdb1add7e # Parent 0c84b48831c8b92f4eb907b98e592fbb8909c940 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> xen-unstable changeset: 25069:46bf3ab42baf xen-unstable date: Fri Mar 16 11:35:06 2012 +0100 --- diff -r 0c84b48831c8 -r bb1ab1475ce8 unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Mon May 14 16:50:21 2012 +0100 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Mon May 14 16:50:58 2012 +0100 @@ -161,4 +161,14 @@ typedef irqreturn_t (*irq_handler_t)(int #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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |