aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2005-09-10 03:27:26 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 13:06:37 -0400
commit52e6e6308801697ae8e59e7a577f9ca71231a35c (patch)
treee5b2991f308f39d8b22ef1213f0aef8a8fbadadb /arch/i386/kernel
parent20c6abd1fd3a6296282f63fae82e589aa81862ff (diff)
[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>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r--arch/i386/kernel/io_apic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c
index 1efdc76ae96d..35d3ce26a544 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)
573 } 573 }
574 574
575 for ( ; ; ) { 575 for ( ; ; ) {
576 set_current_state(TASK_INTERRUPTIBLE); 576 time_remaining = schedule_timeout_interruptible(time_remaining);
577 time_remaining = schedule_timeout(time_remaining);
578 try_to_freeze(); 577 try_to_freeze();
579 if (time_after(jiffies, 578 if (time_after(jiffies,
580 prev_balance_time+balanced_irq_interval)) { 579 prev_balance_time+balanced_irq_interval)) {