xcp-1.6-updates/xen-4.1.hg

changeset 23295:bb1ab1475ce8

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>
xen-unstable changeset: 25069:46bf3ab42baf
xen-unstable date: Fri Mar 16 11:35:06 2012 +0100
author Jan Beulich <jbeulich@suse.com>
date Mon May 14 16:50:58 2012 +0100 (2012-05-14)
parents 0c84b48831c8
children 89c61e66f45f
files unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Mon May 14 16:50:21 2012 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Mon May 14 16:50:58 2012 +0100
     1.3 @@ -161,4 +161,14 @@ typedef irqreturn_t (*irq_handler_t)(int
     1.4  #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
     1.5  #endif
     1.6  
     1.7 +#ifdef sync_test_bit
     1.8 +#define synch_change_bit		sync_change_bit
     1.9 +#define synch_clear_bit			sync_clear_bit
    1.10 +#define synch_set_bit			sync_set_bit
    1.11 +#define synch_test_and_change_bit	sync_test_and_change_bit
    1.12 +#define synch_test_and_clear_bit	sync_test_and_clear_bit
    1.13 +#define synch_test_and_set_bit		sync_test_and_set_bit
    1.14 +#define synch_test_bit			sync_test_bit
    1.15  #endif
    1.16 +
    1.17 +#endif