From: domen@coderock.org
To: B.Zolnierkiewicz@elka.pw.edu.pl
Cc: linux-ide@vger.kernel.org, Nishanth Aravamudan <nacc@us.ibm.com>,
Maximilian Attems <janitor@sternwelten.at>,
domen@coderock.org
Subject: [patch 1/6] ide/ide-cs: replace schedule_timeout() with msleep()
Date: Mon, 20 Jun 2005 23:52:17 +0200 [thread overview]
Message-ID: <20050620215216.538027000@nd47.coderock.org> (raw)
[-- Attachment #1: msleep-drivers_ide_ide-cs.patch --]
[-- Type: text/plain, Size: 932 bytes --]
From: Nishanth Aravamudan <nacc@us.ibm.com>
Uses msleep() in place of schedule_timeout()
to guarantee the task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
ide-cs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: quilt/drivers/ide/legacy/ide-cs.c
===================================================================
--- quilt.orig/drivers/ide/legacy/ide-cs.c
+++ quilt/drivers/ide/legacy/ide-cs.c
@@ -43,6 +43,7 @@
#include <linux/ide.h>
#include <linux/hdreg.h>
#include <linux/major.h>
+#include <linux/delay.h>
#include <asm/io.h>
#include <asm/system.h>
@@ -346,8 +347,7 @@ static void ide_config(dev_link_t *link)
break;
}
}
- __set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
}
if (hd < 0) {
--
next reply other threads:[~2005-06-20 21:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-20 21:52 domen [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-06 10:42 [patch 1/6] ide/ide-cs: replace schedule_timeout() with msleep() domen
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=20050620215216.538027000@nd47.coderock.org \
--to=domen@coderock.org \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=janitor@sternwelten.at \
--cc=linux-ide@vger.kernel.org \
--cc=nacc@us.ibm.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;
as well as URLs for NNTP newsgroup(s).