X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-alpha%2Fsemaphore.h;h=1f197842872c5b9b5062eb1faa1dc12bf213d84a;hb=4e4f43fe003969bdaa246374b90e16708a22ef79;hp=2ab1341a59beebe345c45caba414d040f8b472ed;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/include/asm-alpha/semaphore.h b/include/asm-alpha/semaphore.h index 2ab1341a5..1f1978428 100644 --- a/include/asm-alpha/semaphore.h +++ b/include/asm-alpha/semaphore.h @@ -18,12 +18,12 @@ struct semaphore { atomic_t count; wait_queue_head_t wait; -#if WAITQUEUE_DEBUG +#ifdef WAITQUEUE_DEBUG long __magic; #endif }; -#if WAITQUEUE_DEBUG +#ifdef WAITQUEUE_DEBUG # define __SEM_DEBUG_INIT(name) , (long)&(name).__magic #else # define __SEM_DEBUG_INIT(name) @@ -53,7 +53,7 @@ static inline void sema_init(struct semaphore *sem, int val) atomic_set(&sem->count, val); init_waitqueue_head(&sem->wait); -#if WAITQUEUE_DEBUG +#ifdef WAITQUEUE_DEBUG sem->__magic = (long)&sem->__magic; #endif } @@ -142,7 +142,7 @@ static inline void __up(struct semaphore *sem) __up_wakeup(sem); } -#if !WAITQUEUE_DEBUG && !defined(CONFIG_DEBUG_SEMAPHORE) +#if !defined(WAITQUEUE_DEBUG) && !defined(CONFIG_DEBUG_SEMAPHORE) extern inline void down(struct semaphore *sem) { __down(sem);