powerpc/corenet: use the mixed mode of MPIC when enabling CPU hotplug
authorchenhui zhao <chenhui.zhao@freescale.com>
Thu, 23 Jul 2015 03:55:45 +0000 (11:55 +0800)
committerScott Wood <scottwood@freescale.com>
Fri, 16 Oct 2015 23:44:27 +0000 (18:44 -0500)
Core reset may cause issue if using the proxy mode of MPIC.
Use the mixed mode of MPIC if enabling CPU hotplug.

Signed-off-by: Chenhui Zhao <chenhui.zhao@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/platforms/85xx/corenet_generic.c

index b39557120cbb0649af96340188dc7352a4b5de80..99412b32586d3f8d2ad5b7f530cfa44e31d7baa4 100644 (file)
@@ -214,7 +214,15 @@ define_machine(corenet_generic) {
        .pcibios_fixup_bus      = fsl_pcibios_fixup_bus,
        .pcibios_fixup_phb      = fsl_pcibios_fixup_phb,
 #endif
+/*
+ * Core reset may cause issue if using the proxy mode of MPIC.
+ * So, use the mixed mode of MPIC if enabling CPU hotplug.
+ */
+#ifdef CONFIG_HOTPLUG_CPU
+       .get_irq                = mpic_get_irq,
+#else
        .get_irq                = mpic_get_coreint_irq,
+#endif
        .restart                = fsl_rstcr_restart,
        .calibrate_decr         = generic_calibrate_decr,
        .progress               = udbg_progress,