patch-2.1.43 linux/include/linux/sched.h
Next file: linux/include/linux/selection.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sun Jun 15 15:12:29 1997
- Orig file:
v2.1.42/linux/include/linux/sched.h
- Orig date:
Thu Jun 12 15:28:33 1997
diff -u --recursive --new-file v2.1.42/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -500,13 +500,8 @@
*/
extern inline void __add_wait_queue(struct wait_queue ** p, struct wait_queue * wait)
{
- struct wait_queue *head = *p;
- struct wait_queue *next = WAIT_QUEUE_HEAD(p);
-
- if (head)
- next = head;
+ wait->next = *p ? : WAIT_QUEUE_HEAD(p);
*p = wait;
- wait->next = next;
}
extern rwlock_t waitqueue_lock;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov