patch-2.1.127 linux/drivers/char/bw-qcam.c
Next file: linux/drivers/char/c-qcam.c
Previous file: linux/drivers/char/Makefile
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sat Oct 31 11:03:24 1998
- Orig file:
v2.1.126/linux/drivers/char/bw-qcam.c
- Orig date:
Fri Oct 23 22:01:20 1998
diff -u --recursive --new-file v2.1.126/linux/drivers/char/bw-qcam.c linux/drivers/char/bw-qcam.c
@@ -214,8 +214,7 @@
if(runs++>1000)
{
current->state=TASK_INTERRUPTIBLE;
- current->timeout = jiffies+HZ/10;
- schedule();
+ schedule_timeout(HZ/10);
}
if(runs>1050)
return -1;
@@ -232,8 +231,7 @@
if(runs++>1000)
{
current->state=TASK_INTERRUPTIBLE;
- current->timeout = jiffies+HZ/10;
- schedule();
+ schedule_timeout(HZ/10);
}
if(runs++>1050) /* 5 seconds */
return -1;
@@ -263,8 +261,7 @@
if(runs++>1000)
{
current->state=TASK_INTERRUPTIBLE;
- current->timeout = jiffies+HZ/10;
- schedule();
+ schedule_timeout(HZ/10);
}
if(runs++>1050) /* 5 seconds */
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov