diff options
author | Andrew Jones <drjones@redhat.com> | 2016-05-11 22:23:17 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-06-02 20:00:06 +0300 |
commit | cf1d9d11e25053a264c0001aa86be7680bb1ecc1 (patch) | |
tree | c2141a2a0d84174d60e5114b0622f38b967f8274 /drivers/irqchip/irq-gic-v3.c | |
parent | fab0cdc30d81694d2d5524b24e42c43414971719 (diff) | |
download | linux-cf1d9d11e25053a264c0001aa86be7680bb1ecc1.tar.xz |
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>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index fb042ba9a3db..2c5ba0e704bf 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/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); |