mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] switch fd1772.c from sleep_on to wait_event
@ 2005-07-30 18:30 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-07-30 18:30 UTC (permalink / raw)
  To: rmk; +Cc: linux-kernel

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


Signed-off-by: Christoph Hellwig <hch@lst.de>


Index: linux-2.6/drivers/acorn/block/fd1772.c
===================================================================
--- linux-2.6.orig/drivers/acorn/block/fd1772.c	2005-04-30 10:17:13.000000000 +0200
+++ linux-2.6/drivers/acorn/block/fd1772.c	2005-05-27 14:15:43.000000000 +0200
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-30 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-30 18:30 [PATCH] switch fd1772.c from sleep_on to wait_event Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®