Skip to contentSkip to conversation

irqchip/gic-v3: fix quiescence check in gic_enable_redist

PATCH New Andrew Jones 1 participant 1 message May 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/gic-v3: fix quiescence check in gic_enable_redist

---
I'm unaware of any problems this may have caused. I only just saw it while reading over the code.

 drivers/irqchip/irq-gic-v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-gic-v3.c +1 -1
index 5b7d3c2129d87..518bc1799b4dc 100644
@@ -147,7 +147,7 @@ static void gic_enable_redist(bool enable)
 
 	while (count--) {
 		val = readl_relaxed(rbase + GICR_WAKER);
-		if (enable ^ (val & GICR_WAKER_ChildrenAsleep))
+		if (enable ^ (bool)(val & GICR_WAKER_ChildrenAsleep))
 			break;
 		cpu_relax();
 		udelay(1);
Signature · 1 line
2.4.11