lkml.org 
[lkml]   [2004]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.6.6-rc2] use smp_processor_id() in init_IRQ()
This patch replaces current_thread_info()->cpu in
i386' init_IRQ() by the equivalent smp_processor_id().
Reduces overhead on UP, and makes the code cleaner.

/Mikael

--- linux-2.6.6-rc2/arch/i386/kernel/i8259.c.~1~ 2004-04-22 12:33:48.000000000 +0200
+++ linux-2.6.6-rc2/arch/i386/kernel/i8259.c 2004-04-22 13:15:40.000000000 +0200
@@ -445,5 +445,5 @@
if (boot_cpu_data.hard_math && !cpu_has_fpu)
setup_irq(FPU_IRQ, &fpu_irq);

- irq_ctx_init(current_thread_info()->cpu);
+ irq_ctx_init(smp_processor_id());
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.104 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site