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>
This commit is contained in:

committed by
Michael Ellerman

parent
a8a4b03ab9
commit
c2e480ba82
@@ -322,7 +322,7 @@ static inline void perf_read_regs(struct pt_regs *regs)
|
||||
*/
|
||||
static inline int perf_intr_is_nmi(struct pt_regs *regs)
|
||||
{
|
||||
return !regs->softe;
|
||||
return (regs->softe == IRQS_DISABLED);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user