summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/exception-64s.h
diff options
context:
space:
mode:
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>2017-12-20 09:25:42 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-19 22:36:56 +1100
commitc2e480ba822718190e58849b79a76db13c3dac18 (patch)
treef76fba08014065ce9ed6b17fc4d59a29424749ba /arch/powerpc/include/asm/exception-64s.h
parenta8a4b03ab95f3e99196b0a4dd40804620ea77e74 (diff)
downloadop-kernel-dev-c2e480ba822718190e58849b79a76db13c3dac18.zip
op-kernel-dev-c2e480ba822718190e58849b79a76db13c3dac18.tar.gz
powerpc/64: Add #defines for paca->soft_enabled flags
Two #defines IRQS_ENABLED and IRQS_DISABLED are added to be used when updating paca->soft_enabled. Replace the hardcoded values used when updating paca->soft_enabled with IRQ_(EN|DIS)ABLED #define. No logic change. Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/exception-64s.h')
-rw-r--r--arch/powerpc/include/asm/exception-64s.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/exception-64s.h b/arch/powerpc/include/asm/exception-64s.h
index b272052..69c4e3d 100644
--- a/arch/powerpc/include/asm/exception-64s.h
+++ b/arch/powerpc/include/asm/exception-64s.h
@@ -499,7 +499,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943)
#define __SOFTEN_TEST(h, vec) \
lbz r10,PACASOFTIRQEN(r13); \
- cmpwi r10,0; \
+ cmpwi r10,IRQS_DISABLED; \
li r10,SOFTEN_VALUE_##vec; \
beq masked_##h##interrupt
OpenPOWER on IntegriCloud