tree 73c492d859266b54a556ec92471c76d035c926e9
parent fc1df37e3b195cb73ecb14c30d41b7aace3f844a
author Christoph Hellwig <[EMAIL PROTECTED]> Sun, 07 Aug 2005 14:23:42 +0100
committer Russell King <[EMAIL PROTECTED]> Sun, 07 Aug 2005 14:23:42 +0100

[PATCH] ARM: 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.

Signed-off-by: Christoph Hellwig <[EMAIL PROTECTED]>
Signed-off-by: Russell King <[EMAIL PROTECTED]>

 drivers/acorn/block/fd1772.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/acorn/block/fd1772.c b/drivers/acorn/block/fd1772.c
--- a/drivers/acorn/block/fd1772.c
+++ b/drivers/acorn/block/fd1772.c
@@ -1283,8 +1283,7 @@ static void do_fd_request(request_queue_
        if (fdc_busy) return;
-       while (fdc_busy)
-               sleep_on(&fdc_wait);
+       wait_event(fdc_wait, !fdc_busy);
        fdc_busy = 1;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to