patch-2.3.4 linux/drivers/sound/lowlevel/awe_wave.c
Next file: linux/drivers/sound/sb_common.c
Previous file: linux/drivers/sound/es1370.c
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
Wed May 26 09:35:00 1999
-  Orig file: 
v2.3.3/linux/drivers/sound/lowlevel/awe_wave.c
-  Orig date: 
Mon May 17 09:55:22 1999
diff -u --recursive --new-file v2.3.3/linux/drivers/sound/lowlevel/awe_wave.c linux/drivers/sound/lowlevel/awe_wave.c
@@ -979,10 +979,10 @@
 }
 #else
 
-static DECLARE_WAIT_QUEUE_HEAD(awe_sleeper);
 static void awe_wait(unsigned short delay)
 {
-	interruptible_sleep_on_timeout(&awe_sleeper, (HZ * (unsigned long)delay + 44099) / 44100);
+	current->state = TASK_INTERRUPTIBLE;
+	schedule_timeout((HZ*(unsigned long)delay + 44099)/44100);
 }
 #endif /* wait by loop */
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)