patch-2.4.0-test11 linux/include/linux/wait.h

Next file: linux/include/linux/wrapper.h
Previous file: linux/include/linux/usb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/include/linux/wait.h linux/include/linux/wait.h
@@ -44,7 +44,8 @@
 #endif
 
 struct __wait_queue {
-	unsigned int compiler_warning;
+	unsigned int flags;
+#define WQ_FLAG_EXCLUSIVE	0x01
 	struct task_struct * task;
 	struct list_head task_list;
 #if WAITQUEUE_DEBUG
@@ -109,7 +110,7 @@
 #endif
 
 #define __WAITQUEUE_INITIALIZER(name,task) \
-	{ 0x1234567, task, { NULL, NULL } __WAITQUEUE_DEBUG_INIT(name)}
+	{ 0x0, task, { NULL, NULL } __WAITQUEUE_DEBUG_INIT(name)}
 #define DECLARE_WAITQUEUE(name,task) \
 	wait_queue_t name = __WAITQUEUE_INITIALIZER(name,task)
 
@@ -141,6 +142,7 @@
 	if (!q || !p)
 		WQ_BUG();
 #endif
+	q->flags = 0;
 	q->task = p;
 #if WAITQUEUE_DEBUG
 	q->__magic = (long)&q->__magic;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)