Skip to contentSkip to conversation

wait.h cleanup

PATCH New Matti Annala 1 participant 1 message Nov 16, 2002 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wait.h cleanup

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?

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

include/linux/wait.h 2002-11-14 09:40:37.000000000 +0200 renamed from include/linux/wait.h 2002-11-05 00:30:31.000000000 +0200 +6 -11
diff -ur linux-2.5.47/include/linux/wait.h difflinux/include/linux/wait.h
@@ -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) \