From: domen@coderock.org
To: spyro@f2s.com
Cc: linux-kernel@vger.kernel.org, domen@coderock.org, nacc@us.ibm.com
Subject: [patch 2/4] acorn/fd1772: replace sleep_on() with wait_event()
Date: Sat, 05 Mar 2005 23:41:48 +0100 [thread overview]
Message-ID: <20050305224149.11CE41F1F0@trashy.coderock.org> (raw)
Use wait_event() instead of the deprecated sleep_on(). Since
wait_event() expects the condition upon which the loop should return, pass in
the negation of the current conditional.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/drivers/acorn/block/fd1772.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/acorn/block/fd1772.c~wait_event-drivers_acorn_block_fd1772 drivers/acorn/block/fd1772.c
--- kj/drivers/acorn/block/fd1772.c~wait_event-drivers_acorn_block_fd1772 2005-03-05 16:11:23.000000000 +0100
+++ kj-domen/drivers/acorn/block/fd1772.c 2005-03-05 16:11:23.000000000 +0100
@@ -139,6 +139,7 @@
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/bitops.h>
+#include <linux/wait.h>
#include <asm/arch/oldlatches.h>
#include <asm/dma.h>
@@ -1283,8 +1284,7 @@ static void do_fd_request(request_queue_
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);
_
reply other threads:[~2005-03-05 22:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050305224149.11CE41F1F0@trashy.coderock.org \
--to=domen@coderock.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nacc@us.ibm.com \
--cc=spyro@f2s.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox