Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrew Jones and committed by
Marc Zyngier
cf1d9d11 fab0cdc3

+1 -1
+1 -1
drivers/irqchip/irq-gic-v3.c
··· 155 155 156 156 while (count--) { 157 157 val = readl_relaxed(rbase + GICR_WAKER); 158 - if (enable ^ (val & GICR_WAKER_ChildrenAsleep)) 158 + if (enable ^ (bool)(val & GICR_WAKER_ChildrenAsleep)) 159 159 break; 160 160 cpu_relax(); 161 161 udelay(1);