mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT pull] Preparatory patch for semaphore cleanup
@ 2010-09-08 13:11 Thomas Gleixner
  2010-09-08 14:54 ` Linus Torvalds
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2010-09-08 13:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, LKML, Ingo Molnar, Peter Zijlstra

Linus,

Please pull the semaphore-for-linus git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git semaphore-for-linus

This patch just provides the DEFINE_SEMAPHORE macro which is required
for the various subsystem cleanups I sent out, so we can finally get
rid of init_MUTEX[_LOCKED] in 2.6.37.

Thanks,

	tglx

------------------>
Thomas Gleixner (1):
      semaphore: Add DEFINE_SEMAPHORE


 include/linux/semaphore.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h
index 7415839..5310d27 100644
--- a/include/linux/semaphore.h
+++ b/include/linux/semaphore.h
@@ -26,6 +26,9 @@ struct semaphore {
 	.wait_list	= LIST_HEAD_INIT((name).wait_list),		\
 }
 
+#define DEFINE_SEMAPHORE(name)	\
+	struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1)
+
 #define DECLARE_MUTEX(name)	\
 	struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1)
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-09-08 16:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-08 13:11 [GIT pull] Preparatory patch for semaphore cleanup Thomas Gleixner
2010-09-08 14:54 ` Linus Torvalds
2010-09-08 14:59   ` Peter Zijlstra
2010-09-08 15:56     ` Ingo Molnar
2010-09-08 15:58       ` Peter Zijlstra
2010-09-08 16:03         ` Ingo Molnar
2010-09-08 15:05   ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®