[PATCH][2.6.6-rc2] use smp_processor_id() in init_IRQ()

From: Mikael Pettersson
Date: Thu Apr 22 2004 - 11:22:50 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/