diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-03-16 11:35:06 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-03-16 11:35:06 +0100 |
commit | 256eea1f72eb8cada9e2649cd4dfdcd02ea97e83 (patch) | |
tree | ca20f7081e58e5f32798d12425d982a363fe027e /unmodified_drivers | |
parent | 6fabc84127a2ab606af29a1b9c1c545b3749093f (diff) | |
download | xen-256eea1f72eb8cada9e2649cd4dfdcd02ea97e83.tar.gz xen-256eea1f72eb8cada9e2649cd4dfdcd02ea97e83.tar.bz2 xen-256eea1f72eb8cada9e2649cd4dfdcd02ea97e83.zip |
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@suse.com>
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'unmodified_drivers')
-rw-r--r-- | unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index fd696704ee..595d012293 100644 --- 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, void *, struct pt_regs *); #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 |