patch-2.1.127 linux/drivers/sound/cs4232.c

Next file: linux/drivers/sound/dmabuf.c
Previous file: linux/drivers/sgi/char/sgiserial.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/sound/cs4232.c linux/drivers/sound/cs4232.c
@@ -96,9 +96,7 @@
 static void sleep(unsigned howlong)
 {
 	current->state = TASK_INTERRUPTIBLE;
-	current->timeout = jiffies + howlong;
-	schedule();
-	current->timeout = 0;
+	schedule_timeout(howlong);
 }
 
 int probe_cs4232(struct address_info *hw_config)

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