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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2aad5f03d97bbaf1b19f31347656de953247c7da;p=openwrt%2Fstaging%2Fblogic.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 dc0841b2721c..0ccf85fcee34 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) {