linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/6] ide/ide-cs: replace schedule_timeout() with msleep()
@ 2005-03-06 10:42 domen
  0 siblings, 0 replies; 2+ messages in thread
From: domen @ 2005-03-06 10:42 UTC (permalink / raw)
  To: B.Zolnierkiewicz; +Cc: linux-ide, domen, nacc, janitor





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>
---


 kj-domen/drivers/ide/legacy/ide-cs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/ide/legacy/ide-cs.c~msleep-drivers_ide_ide-cs drivers/ide/legacy/ide-cs.c
--- kj/drivers/ide/legacy/ide-cs.c~msleep-drivers_ide_ide-cs	2005-03-05 16:09:13.000000000 +0100
+++ kj-domen/drivers/ide/legacy/ide-cs.c	2005-03-05 16:09:13.000000000 +0100
@@ -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) {
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [patch 1/6] ide/ide-cs: replace schedule_timeout() with msleep()
@ 2005-06-20 21:52 domen
  0 siblings, 0 replies; 2+ messages in thread
From: domen @ 2005-06-20 21:52 UTC (permalink / raw)
  To: B.Zolnierkiewicz; +Cc: linux-ide, Nishanth Aravamudan, Maximilian Attems, domen

[-- 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) {

--

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-20 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 21:52 [patch 1/6] ide/ide-cs: replace schedule_timeout() with msleep() domen
  -- strict thread matches above, loose matches on Subject: below --
2005-03-06 10:42 domen

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).