Sfoglia il codice sorgente

irqchip/gic-v3: Fix quiescence check in gic_enable_redist

Make sure the two sides of the bitwise operation are bool.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Andrew Jones 9 anni fa
parent
commit
cf1d9d11e2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/irqchip/irq-gic-v3.c

+ 1 - 1
drivers/irqchip/irq-gic-v3.c

@@ -155,7 +155,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);