[PATCH] x86-64: remove extra smp_processor_id calling
authorYinghai Lu <yinghai.lu@amd.com>
Wed, 2 May 2007 17:27:08 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:08 +0000 (19:27 +0200)
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/io_apic.c

index c6a5bc7..318d905 100644 (file)
@@ -1407,8 +1407,7 @@ static void irq_complete_move(unsigned int irq)
 
        vector = ~get_irq_regs()->orig_rax;
        me = smp_processor_id();
-       if ((vector == cfg->vector) &&
-           cpu_isset(smp_processor_id(), cfg->domain)) {
+       if ((vector == cfg->vector) && cpu_isset(me, cfg->domain)) {
                cpumask_t cleanup_mask;
 
                cpus_and(cleanup_mask, cfg->old_domain, cpu_online_map);