]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] use smp_processor_id() in init_IRQ()
authorMikael Pettersson <mikpe@csd.uu.se>
Thu, 22 Apr 2004 06:38:54 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 22 Apr 2004 06:38:54 +0000 (23:38 -0700)
This replaces current_thread_info()->cpu in i386' init_IRQ() by the
equivalent smp_processor_id().

Reduces overhead on UP, and makes the code cleaner.

arch/i386/kernel/i8259.c

index f424fc369fb1476d9acab3d5286b75954e52cb0a..0be8d6b87cf799285efe76d5845978bdcf41b8f7 100644 (file)
@@ -445,5 +445,5 @@ void __init init_IRQ(void)
        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());
 }