powerpc/64/interrupt: Fix false warning in context tracking due to idle state
Nicholas Piggin
reviewerPATCH 1/1 powerpc/64/interrupt: Fix false warning in context tracking due to idle state
Commit 171476775d32 ("context_tracking: Convert state to atomic_t") added a CONTEXT_IDLE state which can be encountered by interrupts from kernel mode in the idle thread, causing a false positive warning.
Fixes 171476775d32 ("context_tracking: Convert state to atomic_t")
Signed-off-by Nicholas Piggin <[email protected]>
--- arch/powerpc/include/asm/interrupt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/include/asm/interrupt.h +2 -1
@@ -195,7 +195,8 @@ static inline void interrupt_enter_prepare(struct pt_regs *regs)* so avoid recursion. */ if (TRAP (regs) !=INTERRUPT_PROGRAM ) { -CT_WARN_ON (ct_state () !=CONTEXT_KERNEL ); +CT_WARN_ON (ct_state () !=CONTEXT_KERNEL && +ct_state () !=CONTEXT_IDLE );if (IS_ENABLED (CONFIG_PPC_IRQ_SOFT_MASK_DEBUG ))BUG_ON (is_implicit_soft_masked (regs)); }
Signature · 1 line
2.37.2