From: Nishanth Aravamudan Date: Sat, 10 Sep 2005 07:27:26 +0000 (-0700) Subject: [PATCH] i386: fix-up schedule_timeout() usage X-Git-Tag: 2.1b_release~39798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52e6e6308801697ae8e59e7a577f9ca71231a35c;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c index 1efdc76..35d3ce2 100644 --- a/arch/i386/kernel/io_apic.c +++ b/arch/i386/kernel/io_apic.c @@ -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)) {