Commit 12621a16 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by 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: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment