patch-2.3.1 linux/drivers/char/vt.c
Next file: linux/drivers/fc4/fc.c
Previous file: linux/drivers/char/tty_ioctl.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue May 11 14:37:40 1999
- Orig file:
v2.3.0/linux/drivers/char/vt.c
- Orig date:
Wed Feb 3 22:57:41 1999
diff -u --recursive --new-file v2.3.0/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -1099,7 +1099,7 @@
* while those not ready go back to sleep. Seems overkill to add a wait
* to each vt just for this - usually this does nothing!
*/
-static struct wait_queue *vt_activate_queue = NULL;
+static DECLARE_WAIT_QUEUE_HEAD(vt_activate_queue);
/*
* Sleeps until a vt is activated, or the task is interrupted. Returns
@@ -1108,7 +1108,7 @@
int vt_waitactive(int vt)
{
int retval;
- struct wait_queue wait = { current, NULL };
+ DECLARE_WAITQUEUE(wait, current);
add_wait_queue(&vt_activate_queue, &wait);
for (;;) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)