semaphore: Add DEFINE_SEMAPHORE
authorThomas Gleixner <tglx@linutronix.de>
Tue, 7 Sep 2010 12:46:37 +0000 (14:46 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 8 Sep 2010 13:04:10 +0000 (15:04 +0200)
commitfebc88c5948f81114f64c3412011d695aecae233
tree8b3c9568f528b048ff61fc042f8e8b6f466c40bb
parentd56557af19867edb8c0e96f8e26399698a08857f
semaphore: Add DEFINE_SEMAPHORE

The full cleanup of init_MUTEX[_LOCKED] and DECLARE_MUTEX has not been
done. Some of the users are real semaphores and we should name them as
such instead of confusing everyone with "MUTEX".

Provide the infrastructure to get finally rid of init_MUTEX[_LOCKED]
and DECLARE_MUTEX.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
LKML-Reference: <20100907125054.795929962@linutronix.de>
include/linux/semaphore.h