]> git.hungrycats.org Git - linux/commitdiff
ia64: Two small MCA fixes.
authorDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 27 Mar 2003 04:34:49 +0000 (20:34 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 27 Mar 2003 04:34:49 +0000 (20:34 -0800)
arch/ia64/kernel/mca.c

index b44dfa6fa25653c2def6e3b0b61db36e722ea52e..f08fdbf3bdd8db174e679959c21002e26877240a 100644 (file)
@@ -169,7 +169,8 @@ mca_handler_platform (void)
 void
 ia64_mca_cpe_int_handler (int cpe_irq, void *arg, struct pt_regs *ptregs)
 {
-       IA64_MCA_DEBUG("ia64_mca_cpe_int_handler: received interrupt. CPU:%d vector = %#x\n", smp_processor_id(), cpe_irq);
+       IA64_MCA_DEBUG("ia64_mca_cpe_int_handler: received interrupt. CPU:%d vector = %#x\n",
+                      smp_processor_id(), cpe_irq);
 
        /* Get the CMC error record and log it */
        ia64_mca_log_sal_error_record(SAL_INFO_TYPE_CPE, 0);
@@ -679,14 +680,11 @@ void
 ia64_mca_rendez_int_handler(int rendez_irq, void *arg, struct pt_regs *ptregs)
 {
        unsigned long flags;
-       int cpu = 0;
+       int cpu = smp_processor_id();
 
        /* Mask all interrupts */
        local_irq_save(flags);
 
-#ifdef CONFIG_SMP
-       cpu = cpu_logical_id(hard_smp_processor_id());
-#endif
        ia64_mc_info.imi_rendez_checkin[cpu] = IA64_MCA_RENDEZ_CHECKIN_DONE;
        /* Register with the SAL monarch that the slave has
         * reached SAL