public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wait.h cleanup
@ 2002-11-16  9:22 Matti Annala
  0 siblings, 0 replies; only message in thread
From: Matti Annala @ 2002-11-16  9:22 UTC (permalink / raw)
  To: Kernel Mailinglist, Dave Jones

The patch below slightly cleans up the waitqueue initialization macros and
removes a useless comment from the header (the macro names are clear enough).

Comments?

--------------------------------------------------------------------------------

diff -ur linux-2.5.47/include/linux/wait.h difflinux/include/linux/wait.h
--- linux-2.5.47/include/linux/wait.h 2002-11-05 00:30:31.000000000 +0200
+++ difflinux/include/linux/wait.h 2002-11-14 09:40:37.000000000 +0200
@@ -37,21 +37,16 @@
 };
 typedef struct __wait_queue_head wait_queue_head_t;
 
-
-/*
- * Macros for declaration and initialisaton of the datatypes
- */
-
-#define __WAITQUEUE_INITIALIZER(name, tsk) {    \
+#define __WAITQUEUE_INITIALIZER(tsk) {  \
  .task  = tsk,      \
- .func  = default_wake_function,   \
+ .func  = default_wake_function, \
  .task_list = { NULL, NULL } }
 
-#define DECLARE_WAITQUEUE(name, tsk)     \
- wait_queue_t name = __WAITQUEUE_INITIALIZER(name, tsk)
+#define DECLARE_WAITQUEUE(name, tsk) \
+ wait_queue_t name = __WAITQUEUE_INITIALIZER(tsk)
 
-#define __WAIT_QUEUE_HEAD_INITIALIZER(name) {    \
- .lock  = SPIN_LOCK_UNLOCKED,    \
+#define __WAIT_QUEUE_HEAD_INITIALIZER(name) {     \
+ .lock  = SPIN_LOCK_UNLOCKED,       \
  .task_list = { &(name).task_list, &(name).task_list } }
 
 #define DECLARE_WAIT_QUEUE_HEAD(name) \



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-16  8:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-16  9:22 [PATCH] wait.h cleanup Matti Annala

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