summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/core-fsl-emb.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-05-10 11:04:23 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 20:40:29 +1000
commit81ea11d3af3aba0bea475dd1dd2f79977a761239 (patch)
tree1c92a18f8fe2263ecb05120712cec157f22c68e3 /arch/powerpc/perf/core-fsl-emb.c
parente360cd37f0e9bac7b5f623132549e2d4b6417399 (diff)
downloadlinux-81ea11d3af3aba0bea475dd1dd2f79977a761239.tar.gz
linux-81ea11d3af3aba0bea475dd1dd2f79977a761239.tar.bz2
linux-81ea11d3af3aba0bea475dd1dd2f79977a761239.zip
powerpc/pmu/fsl: fix is_nmi test for irq mask change
When soft enabled was changed to irq disabled mask, this test missed being converted (although the equivalent book3s test was converted). The PMU drivers consider it an NMI when they take a PMI while general interrupts are disabled. This change restores that behaviour. Fixes: 01417c6cc7 ("powerpc/64: Change soft_enabled from flag to bitmask") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf/core-fsl-emb.c')
-rw-r--r--arch/powerpc/perf/core-fsl-emb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/core-fsl-emb.c b/arch/powerpc/perf/core-fsl-emb.c
index 85f1d18e5fd3..ba485844d506 100644
--- a/arch/powerpc/perf/core-fsl-emb.c
+++ b/arch/powerpc/perf/core-fsl-emb.c
@@ -42,7 +42,7 @@ static DEFINE_MUTEX(pmc_reserve_mutex);
static inline int perf_intr_is_nmi(struct pt_regs *regs)
{
#ifdef __powerpc64__
- return !regs->softe;
+ return (regs->softe & IRQS_DISABLED);
#else
return 0;
#endif