]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94e60fa63bfdac0e291b1fec9fe4e33ca9d7af85
tree8b3c9568f528b048ff61fc042f8e8b6f466c40bb
parent05ca25b816babd654dda36d3bb5171f66ea5e3fc
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