From: Nishanth Aravamudan Date: Sat, 10 Sep 2005 07:27:15 +0000 (-0700) Subject: [PATCH] janitor: ide/ide-cs: replace schedule_timeout() with msleep() X-Git-Tag: v2.6.14-rc1~166 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2aad5f03d97bbaf1b19f31347656de953247c7da;p=linux-2.6-omap-h63xx.git [PATCH] janitor: ide/ide-cs: replace schedule_timeout() with msleep() Uses msleep() in place of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/legacy/ide-cs.c b/drivers/ide/legacy/ide-cs.c index dc0841b2721..0ccf85fcee3 100644 --- a/drivers/ide/legacy/ide-cs.c +++ b/drivers/ide/legacy/ide-cs.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include @@ -340,8 +341,7 @@ static void ide_config(dev_link_t *link) break; } } - __set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(HZ/10); + msleep(100); } if (hd < 0) {