提交 12621a16 编写于 作者: N Nishanth Aravamudan 提交者: Linus Torvalds

[PATCH] drivers/macintosh: fix-up schedule_timeout() usage

Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: NNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 24763c48
...@@ -1678,10 +1678,9 @@ static int main_control_loop(void *x) ...@@ -1678,10 +1678,9 @@ static int main_control_loop(void *x)
} }
// FIXME: Deal with signals // FIXME: Deal with signals
set_current_state(TASK_INTERRUPTIBLE);
elapsed = jiffies - start; elapsed = jiffies - start;
if (elapsed < HZ) if (elapsed < HZ)
schedule_timeout(HZ - elapsed); schedule_timeout_interruptible(HZ - elapsed);
} }
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册