Skip to content

Commit cf1d9d1

Browse files
Andrew JonesMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent fab0cdc commit cf1d9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-gic-v3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static void gic_enable_redist(bool enable)
155155

156156
while (count--) {
157157
val = readl_relaxed(rbase + GICR_WAKER);
158-
if (enable ^ (val & GICR_WAKER_ChildrenAsleep))
158+
if (enable ^ (bool)(val & GICR_WAKER_ChildrenAsleep))
159159
break;
160160
cpu_relax();
161161
udelay(1);

0 commit comments

Comments
 (0)