Commit 337e6a98 authored by Mark A. Greer's avatar Mark A. Greer Committed by Linus Torvalds

[PATCH] ppc32: include/asm-ppc/rwsem.h RWSEM_DEBUG usage

include/asm-ppc/rwsem.h has '#ifdef RWSEM_DEBUG' but RWSEM_DEBUG is always
defined (as 0) in include/linux/rwsem.h.  The #ifdef's should be #if's. 
This also brings the ppc usage in line with the the other architectures.
Signed-off-by: default avatarMark A. Greer <mgreer@mvista.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f72fc5f3
...@@ -27,7 +27,7 @@ struct rw_semaphore { ...@@ -27,7 +27,7 @@ struct rw_semaphore {
#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
spinlock_t wait_lock; spinlock_t wait_lock;
struct list_head wait_list; struct list_head wait_list;
#ifdef RWSEM_DEBUG #if RWSEM_DEBUG
int debug; int debug;
#endif #endif
}; };
...@@ -35,7 +35,7 @@ struct rw_semaphore { ...@@ -35,7 +35,7 @@ struct rw_semaphore {
/* /*
* initialisation * initialisation
*/ */
#ifdef RWSEM_DEBUG #if RWSEM_DEBUG
#define __RWSEM_DEBUG_INIT , 0 #define __RWSEM_DEBUG_INIT , 0
#else #else
#define __RWSEM_DEBUG_INIT /* */ #define __RWSEM_DEBUG_INIT /* */
...@@ -59,7 +59,7 @@ static inline void init_rwsem(struct rw_semaphore *sem) ...@@ -59,7 +59,7 @@ static inline void init_rwsem(struct rw_semaphore *sem)
sem->count = RWSEM_UNLOCKED_VALUE; sem->count = RWSEM_UNLOCKED_VALUE;
spin_lock_init(&sem->wait_lock); spin_lock_init(&sem->wait_lock);
INIT_LIST_HEAD(&sem->wait_list); INIT_LIST_HEAD(&sem->wait_list);
#ifdef RWSEM_DEBUG #if RWSEM_DEBUG
sem->debug = 0; sem->debug = 0;
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment