[PATCH] switch fd1772.c from sleep_on to wait_event
From: Christoph Hellwig (hch_at_lst.de)
Date: 07/30/05
- Previous message: Lee Revell: "Re: Power consumption HZ100, HZ250, HZ1000: new numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 30 Jul 2005 20:30:10 +0200 To: rmk@arm.linux.org.uk
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Lee Revell: "Re: Power consumption HZ100, HZ250, HZ1000: new numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|