Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71abe999 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Russell King
Browse files

[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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent fc1df37e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);