powerpc/pseries: put cede MSR[EE] check under IRQ_SOFT_MASK_DEBUG
authorNicholas Piggin <npiggin@gmail.com>
Fri, 4 May 2018 17:19:26 +0000 (03:19 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:40:25 +0000 (20:40 +1000)
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>
arch/powerpc/include/asm/plpar_wrappers.h

index 96c1a46acbd0620ef2d9487b9f8908b36af2b352..cff5a411e59545453ec580ece9475ea562556f77 100644 (file)
@@ -39,10 +39,10 @@ static inline long extended_cede_processor(unsigned long latency_hint)
        set_cede_latency_hint(latency_hint);
 
        rc = cede_processor();
-#ifdef CONFIG_TRACE_IRQFLAGS
-               /* Ensure that H_CEDE returns with IRQs on */
-               if (WARN_ON(!(mfmsr() & MSR_EE)))
-                       __hard_irq_enable();
+#ifdef CONFIG_PPC_IRQ_SOFT_MASK_DEBUG
+       /* Ensure that H_CEDE returns with IRQs on */
+       if (WARN_ON(!(mfmsr() & MSR_EE)))
+               __hard_irq_enable();
 #endif
 
        set_cede_latency_hint(old_latency_hint);