Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pseries: put cede MSR[EE] check under IRQ_SOFT_MASK_DEBUG

This check does not catch IRQ soft mask bugs, but this option is
slightly more suitable than TRACE_IRQFLAGS.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Nicholas Piggin and committed by
Michael Ellerman
9f4b61b2 ebb37cf3

+4 -4
+4 -4
arch/powerpc/include/asm/plpar_wrappers.h
··· 39 39 set_cede_latency_hint(latency_hint); 40 40 41 41 rc = cede_processor(); 42 - #ifdef CONFIG_TRACE_IRQFLAGS 43 - /* Ensure that H_CEDE returns with IRQs on */ 44 - if (WARN_ON(!(mfmsr() & MSR_EE))) 45 - __hard_irq_enable(); 42 + #ifdef CONFIG_PPC_IRQ_SOFT_MASK_DEBUG 43 + /* Ensure that H_CEDE returns with IRQs on */ 44 + if (WARN_ON(!(mfmsr() & MSR_EE))) 45 + __hard_irq_enable(); 46 46 #endif 47 47 48 48 set_cede_latency_hint(old_latency_hint);