소스 검색

[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 <hch@lst.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Christoph Hellwig 20 년 전
부모
커밋
71abe99980
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      drivers/acorn/block/fd1772.c

+ 1 - 2
drivers/acorn/block/fd1772.c

@@ -1283,8 +1283,7 @@ static void do_fd_request(request_queue_t* q)
 	if (fdc_busy) return;
 	if (fdc_busy) return;
 	save_flags(flags);
 	save_flags(flags);
 	cli();
 	cli();
-	while (fdc_busy)
-		sleep_on(&fdc_wait);
+	wait_event(fdc_wait, !fdc_busy);
 	fdc_busy = 1;
 	fdc_busy = 1;
 	ENABLE_IRQ();
 	ENABLE_IRQ();
 	restore_flags(flags);
 	restore_flags(flags);