Skip to contentSkip to conversation

ide-cs: replace schedule_timeout() with

PATCH New Nishanth Aravamudan 1 participant 1 message Jul 22, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ide-cs: replace schedule_timeout() with

I would appreciate any comments from the janitors list.

Thanks,
Nish

Applys-to: 2.6.7

Description: Use msleep() instead of schedule_timeout() to guarantee the desired delay.

drivers/ide/legacy/ide-cs.c +2 -2
@@ -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>
 
@@ -351,8 +352,7 @@ void ide_config(dev_link_t *link)
 		break;
 	    }
 	}
-	__set_current_state(TASK_UNINTERRUPTIBLE);
-	schedule_timeout(HZ/10);
+	msleep(100);
     }
     
     if (hd < 0) {

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors