patch-2.1.127 linux/drivers/cdrom/cdu31a.c

Next file: linux/drivers/cdrom/gscd.c
Previous file: linux/drivers/cdrom/cdrom.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/cdrom/cdu31a.c linux/drivers/cdrom/cdu31a.c
@@ -409,8 +409,7 @@
    if (cdu31a_irq <= 0)
    {
       current->state = TASK_INTERRUPTIBLE;
-      current->timeout = jiffies;
-      schedule();
+      schedule_timeout(0);
    }
    else /* Interrupt driven */
    {
@@ -753,8 +752,7 @@
    }
 
    current->state = TASK_INTERRUPTIBLE;
-   current->timeout = jiffies + 2*HZ;
-   schedule();
+   schedule_timeout(2*HZ);
 
    sony_get_toc();
 }
@@ -1012,8 +1010,7 @@
    {
       num_retries++;
       current->state = TASK_INTERRUPTIBLE;
-      current->timeout = jiffies + HZ/10; /* Wait .1 seconds on retries */
-      schedule();
+      schedule_timeout(HZ/10);  /* Wait .1 seconds on retries */
       goto retry_cd_operation;
    }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov