Skip to contentSkip to conversation

switch fd1772.c from sleep_on to wait_event

PATCH New Christoph Hellwig 1 participant 1 message Jul 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 switch fd1772.c from sleep_on to wait_event

doesn't make the local irq disabling around it less buggy, but at least we replace the offender with the right kind of primitive.

drivers/acorn/block/fd1772.c +1 -2
Index: linux-2.6/drivers/acorn/block/fd1772.c
===================================================================
@@ -1283,8 +1283,7 @@
 	if (fdc_busy) return;
 	save_flags(flags);
 	cli();
-	while (fdc_busy)
-		sleep_on(&fdc_wait);
+	wait_event(fdc_wait, !fdc_busy);
 	fdc_busy = 1;
 	ENABLE_IRQ();
 	restore_flags(flags);