mirror of https://gitee.com/openkylin/linux.git
[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: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
24763c48a3
commit
12621a163b
|
@ -1678,10 +1678,9 @@ static int main_control_loop(void *x)
|
|||
}
|
||||
|
||||
// FIXME: Deal with signals
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
elapsed = jiffies - start;
|
||||
if (elapsed < HZ)
|
||||
schedule_timeout(HZ - elapsed);
|
||||
schedule_timeout_interruptible(HZ - elapsed);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
Loading…
Reference in New Issue