[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3 of 4] unmodified_drivers: use upstream sync_bitops if available
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1331883707 -3600 # Node ID d721480672b9686011cef0965cefd81a969277b0 # Parent dacdcaaf113263ee748bef99d175b1b7e7013be5 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: Olaf Hering <olaf@xxxxxxxxx> diff -r dacdcaaf1132 -r d721480672b9 unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -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-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |