提交 2aad5f03 编写于 作者: N Nishanth Aravamudan 提交者: Linus Torvalds

[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: NNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: NMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: NDomen Puncer <domen@coderock.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 f6a2f340
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <linux/ide.h> #include <linux/ide.h>
#include <linux/hdreg.h> #include <linux/hdreg.h>
#include <linux/major.h> #include <linux/major.h>
#include <linux/delay.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/system.h> #include <asm/system.h>
...@@ -340,8 +341,7 @@ static void ide_config(dev_link_t *link) ...@@ -340,8 +341,7 @@ static void ide_config(dev_link_t *link)
break; break;
} }
} }
__set_current_state(TASK_UNINTERRUPTIBLE); msleep(100);
schedule_timeout(HZ/10);
} }
if (hd < 0) { if (hd < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册