[PATCH] i386: 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:
Родитель
20c6abd1fd
Коммит
52e6e63088
|
@ -573,8 +573,7 @@ static int balanced_irq(void *unused)
|
|||
}
|
||||
|
||||
for ( ; ; ) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
time_remaining = schedule_timeout(time_remaining);
|
||||
time_remaining = schedule_timeout_interruptible(time_remaining);
|
||||
try_to_freeze();
|
||||
if (time_after(jiffies,
|
||||
prev_balance_time+balanced_irq_interval)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче