提交 33979734 编写于 作者: A akpm@osdl.org 提交者: Linus Torvalds

[PATCH] IPMI: use schedule in kthread

Corey Minyard <minyard@acm.org>

The kthread used to speed up polling for IPMI was using udelay in its
busy-wait polling loop when the lower-level state machine told it to do a
short delay.  This just used CPU and didn't help scheduling, thus causing
bad problems with other tasks.  Call schedule() instead.
Signed-off-by: NCorey Minyard <minyard@acm.org>
Acked-by: NMatt Domsch <Matt_Domsch@dell.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c32e0660
...@@ -809,7 +809,7 @@ static int ipmi_thread(void *data) ...@@ -809,7 +809,7 @@ static int ipmi_thread(void *data)
/* do nothing */ /* do nothing */
} }
else if (smi_result == SI_SM_CALL_WITH_DELAY) else if (smi_result == SI_SM_CALL_WITH_DELAY)
udelay(1); schedule();
else else
schedule_timeout_interruptible(1); schedule_timeout_interruptible(1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册