Skip to contentSkip to conversation

sound/wavefront_synth: insert

PATCH Applied Nishanth Aravamudan 1 participant 1 message Jan 21, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 31/39 sound/wavefront_synth: insert

Hi,

Please consider applying.

Description: Insert set_current_state() before schedule_timeout(). Without the insertion, schedule_timeout() returns immediately, resulting in an effective busy-wait.

sound/isa/wavefront/wavefront_synth.c +1 -0
@@ -1751,6 +1751,7 @@ wavefront_should_cause_interrupt (snd_wa
 	outb (val,port);
 	spin_unlock_irq(&dev->irq_lock);
 	while (1) {
+		set_current_state(TASK_INTERRUPTIBLE);
 		if ((timeout = schedule_timeout(timeout)) == 0)
 			return;
 		if (dev->irq_ok)

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors