summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/xics.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-02-07 11:35:31 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2017-02-09 15:19:57 +1100
commit9b256714979fad61ae11d90b53cf67dd5e6484eb (patch)
tree4e800dc0430b413bb9c3b3f0c68f6099bbe8716a /arch/powerpc/include/asm/xics.h
parent90c1e3c2fafec57fcb55b5d69bcf293b1a5fc8b3 (diff)
downloadlinux-9b256714979fad61ae11d90b53cf67dd5e6484eb.tar.bz2
powerpc/powernv: Fix CPU hotplug to handle waking on HVI
The IPIs come in as HVI not EE, so we need to test the appropriate SRR1 bits. The encoding is such that it won't have false positives on P7 and P8 so we can just test it like that. We also need to handle the icp-opal variant of the flush. Fixes: d74361881f0d ("powerpc/xics: Add ICP OPAL backend") Cc: stable@vger.kernel.org # v4.8+ Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/xics.h')
-rw-r--r--arch/powerpc/include/asm/xics.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h
index f0b238516e9b..e0b9e576905a 100644
--- a/arch/powerpc/include/asm/xics.h
+++ b/arch/powerpc/include/asm/xics.h
@@ -44,6 +44,7 @@ static inline int icp_hv_init(void) { return -ENODEV; }
#ifdef CONFIG_PPC_POWERNV
extern int icp_opal_init(void);
+extern void icp_opal_flush_interrupt(void);
#else
static inline int icp_opal_init(void) { return -ENODEV; }
#endif