From: Mathieu Desnoyers Date: Fri, 24 Jun 2011 02:50:25 +0000 (-0400) Subject: Update spinlock wrapper X-Git-Tag: v2.0-pre1~37 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dce93417cb84aac112fbd37f3467973d7cc39b6a;p=lttng-modules.git Update spinlock wrapper Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/spinlock.h b/wrapper/spinlock.h index af00ef28..e38d3891 100644 --- a/wrapper/spinlock.h +++ b/wrapper/spinlock.h @@ -13,10 +13,10 @@ #define raw_spin_lock_init(lock) \ do { \ - *(lock) = __RAW_SPIN_LOCK_UNLOCKED(lock); \ + *(lock) = __RAW_SPIN_LOCK_UNLOCKED; \ } while (0) -#define raw_spin_is_locked(lock) spin_is_locked(lock) +#define raw_spin_is_locked(lock) __raw_spin_is_locked(lock) #endif