]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] remove CONFIG_SMP ifdef in ia64_send_ipi()
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 5 Mar 2008 22:40:32 +0000 (15:40 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 6 Mar 2008 17:16:33 +0000 (09:16 -0800)
When !CONFIG_SMP, cpu_physical_id() is ia64_get_lid(), which is
functionally identical to

    (ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff

so there's no need for two versions of this code.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/irq_ia64.c

index 2b8cf6e85af4efa9e51a4f3b2b669daaa0bcd1de..16472821d7a9a780b616135fe3c8d1482d48f119 100644 (file)
@@ -666,11 +666,7 @@ ia64_send_ipi (int cpu, int vector, int delivery_mode, int redirect)
        unsigned long ipi_data;
        unsigned long phys_cpu_id;
 
-#ifdef CONFIG_SMP
        phys_cpu_id = cpu_physical_id(cpu);
-#else
-       phys_cpu_id = (ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff;
-#endif
 
        /*
         * cpu number is in 8bit ID and 8bit EID