diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-03-05 17:40:32 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-03-06 12:16:33 -0500 |
commit | cd3244e605efeb13bb3a6e92439974832e1c7388 (patch) | |
tree | 0a59fc9954f5aa258901e6185e6eb4e4ea6d226e /arch/ia64/kernel/irq_ia64.c | |
parent | aa17f6f930b19df2901aa78c88530653cdcfc450 (diff) |
[IA64] remove CONFIG_SMP ifdef in ia64_send_ipi()
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>
Diffstat (limited to 'arch/ia64/kernel/irq_ia64.c')
-rw-r--r-- | arch/ia64/kernel/irq_ia64.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/ia64/kernel/irq_ia64.c b/arch/ia64/kernel/irq_ia64.c index 2b8cf6e85af4..16472821d7a9 100644 --- a/arch/ia64/kernel/irq_ia64.c +++ b/arch/ia64/kernel/irq_ia64.c | |||
@@ -666,11 +666,7 @@ ia64_send_ipi (int cpu, int vector, int delivery_mode, int redirect) | |||
666 | unsigned long ipi_data; | 666 | unsigned long ipi_data; |
667 | unsigned long phys_cpu_id; | 667 | unsigned long phys_cpu_id; |
668 | 668 | ||
669 | #ifdef CONFIG_SMP | ||
670 | phys_cpu_id = cpu_physical_id(cpu); | 669 | phys_cpu_id = cpu_physical_id(cpu); |
671 | #else | ||
672 | phys_cpu_id = (ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff; | ||
673 | #endif | ||
674 | 670 | ||
675 | /* | 671 | /* |
676 | * cpu number is in 8bit ID and 8bit EID | 672 | * cpu number is in 8bit ID and 8bit EID |