Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f4b61b2 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman
Browse files

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: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent ebb37cf3
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -39,7 +39,7 @@ static inline long extended_cede_processor(unsigned long latency_hint)
	set_cede_latency_hint(latency_hint);
	set_cede_latency_hint(latency_hint);


	rc = cede_processor();
	rc = cede_processor();
#ifdef CONFIG_TRACE_IRQFLAGS
#ifdef CONFIG_PPC_IRQ_SOFT_MASK_DEBUG
	/* Ensure that H_CEDE returns with IRQs on */
	/* Ensure that H_CEDE returns with IRQs on */
	if (WARN_ON(!(mfmsr() & MSR_EE)))
	if (WARN_ON(!(mfmsr() & MSR_EE)))
		__hard_irq_enable();
		__hard_irq_enable();