git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
include
/
asm-alpha
/
semaphore.h
diff --git
a/include/asm-alpha/semaphore.h
b/include/asm-alpha/semaphore.h
index
2ab1341
..
1f19784
100644
(file)
--- 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;
struct semaphore {
atomic_t count;
wait_queue_head_t wait;
-#if WAITQUEUE_DEBUG
+#if
def
WAITQUEUE_DEBUG
long __magic;
#endif
};
long __magic;
#endif
};
-#if WAITQUEUE_DEBUG
+#if
def
WAITQUEUE_DEBUG
# define __SEM_DEBUG_INIT(name) , (long)&(name).__magic
#else
# define __SEM_DEBUG_INIT(name)
# 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);
atomic_set(&sem->count, val);
init_waitqueue_head(&sem->wait);
-#if WAITQUEUE_DEBUG
+#if
def
WAITQUEUE_DEBUG
sem->__magic = (long)&sem->__magic;
#endif
}
sem->__magic = (long)&sem->__magic;
#endif
}
@@
-142,7
+142,7
@@
static inline void __up(struct semaphore *sem)
__up_wakeup(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);
extern inline void down(struct semaphore *sem)
{
__down(sem);