Skip to content

Commit

Permalink
[PATCH] ARM: switch fd1772.c from sleep_on to wait_event
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Christoph Hellwig authored and Russell King committed Aug 7, 2005
1 parent fc1df37 commit 71abe99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/acorn/block/fd1772.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,7 @@ static void do_fd_request(request_queue_t* q)
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);
Expand Down

0 comments on commit 71abe99

Please sign in to comment.