[IA64] Cannot use register_percpu_irq() from ia64_mca_init()

This is called before early_irq_init() which will clobber any
registrations made too early. Move the calls to ia64_mca_late_init().

Signed-off-by: Tony Luck <tomy.luck@intel.com>

Tony Luck c75f2aa1 4de0a759

+19 -19
+19 -19
arch/ia64/kernel/mca.c
··· 2055 2055 2056 2056 IA64_MCA_DEBUG("%s: registered OS INIT handler with SAL\n", __func__); 2057 2057 2058 - /* 2059 - * Configure the CMCI/P vector and handler. Interrupts for CMC are 2060 - * per-processor, so AP CMC interrupts are setup in smp_callin() (smpboot.c). 2061 - */ 2062 - register_percpu_irq(IA64_CMC_VECTOR, &cmci_irqaction); 2063 - register_percpu_irq(IA64_CMCP_VECTOR, &cmcp_irqaction); 2064 - ia64_mca_cmc_vector_setup(); /* Setup vector on BSP */ 2065 - 2066 - /* Setup the MCA rendezvous interrupt vector */ 2067 - register_percpu_irq(IA64_MCA_RENDEZ_VECTOR, &mca_rdzv_irqaction); 2068 - 2069 - /* Setup the MCA wakeup interrupt vector */ 2070 - register_percpu_irq(IA64_MCA_WAKEUP_VECTOR, &mca_wkup_irqaction); 2071 - 2072 - #ifdef CONFIG_ACPI 2073 - /* Setup the CPEI/P handler */ 2074 - register_percpu_irq(IA64_CPEP_VECTOR, &mca_cpep_irqaction); 2075 - #endif 2076 - 2077 2058 /* Initialize the areas set aside by the OS to buffer the 2078 2059 * platform/processor error states for MCA/INIT/CMC 2079 2060 * handling. ··· 2083 2102 { 2084 2103 if (!mca_init) 2085 2104 return 0; 2105 + 2106 + /* 2107 + * Configure the CMCI/P vector and handler. Interrupts for CMC are 2108 + * per-processor, so AP CMC interrupts are setup in smp_callin() (smpboot.c). 2109 + */ 2110 + register_percpu_irq(IA64_CMC_VECTOR, &cmci_irqaction); 2111 + register_percpu_irq(IA64_CMCP_VECTOR, &cmcp_irqaction); 2112 + ia64_mca_cmc_vector_setup(); /* Setup vector on BSP */ 2113 + 2114 + /* Setup the MCA rendezvous interrupt vector */ 2115 + register_percpu_irq(IA64_MCA_RENDEZ_VECTOR, &mca_rdzv_irqaction); 2116 + 2117 + /* Setup the MCA wakeup interrupt vector */ 2118 + register_percpu_irq(IA64_MCA_WAKEUP_VECTOR, &mca_wkup_irqaction); 2119 + 2120 + #ifdef CONFIG_ACPI 2121 + /* Setup the CPEI/P handler */ 2122 + register_percpu_irq(IA64_CPEP_VECTOR, &mca_cpep_irqaction); 2123 + #endif 2086 2124 2087 2125 register_hotcpu_notifier(&mca_cpu_notifier); 2088 2126