summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/85xx/corenet_generic.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2021-09-03 14:18:43 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2022-02-07 13:03:10 +0300
commit66ada2907864cafa4578b92926cb8bc0a4bc8c9c (patch)
treeb59bb1bec811f66ef3090bfe663b63bad6d6dba8 /arch/powerpc/platforms/85xx/corenet_generic.c
parentfae65a9ac8fd2221dbf034019fa18d72b2b0c8e9 (diff)
downloadlinux-66ada2907864cafa4578b92926cb8bc0a4bc8c9c.tar.xz
powerpc/corenet: Change criteria to set MPIC_ENABLE_COREINT
Don't use ppc_md function comparison. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/c8ef82ee5f2713f4c36eb5d2d49b0905c7472801.1630667612.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/platforms/85xx/corenet_generic.c')
-rw-r--r--arch/powerpc/platforms/85xx/corenet_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c b/arch/powerpc/platforms/85xx/corenet_generic.c
index 8d6029099848..17ae75d62518 100644
--- a/arch/powerpc/platforms/85xx/corenet_generic.c
+++ b/arch/powerpc/platforms/85xx/corenet_generic.c
@@ -37,7 +37,7 @@ void __init corenet_gen_pic_init(void)
unsigned int flags = MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU |
MPIC_NO_RESET;
- if (ppc_md.get_irq == mpic_get_coreint_irq)
+ if (!IS_ENABLED(CONFIG_HOTPLUG_CPU) && !IS_ENABLED(CONFIG_KEXEC_CORE))
flags |= MPIC_ENABLE_COREINT;
mpic = mpic_alloc(NULL, 0, flags, 0, 512, " OpenPIC ");