summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jones <drjones@redhat.com>2016-05-11 21:23:17 +0200
committerMarc Zyngier <marc.zyngier@arm.com>2016-06-02 18:00:06 +0100
commitcf1d9d11e25053a264c0001aa86be7680bb1ecc1 (patch)
treec2141a2a0d84174d60e5114b0622f38b967f8274
parentfab0cdc30d81694d2d5524b24e42c43414971719 (diff)
downloadop-kernel-dev-cf1d9d11e25053a264c0001aa86be7680bb1ecc1.zip
op-kernel-dev-cf1d9d11e25053a264c0001aa86be7680bb1ecc1.tar.gz
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>
-rw-r--r--drivers/irqchip/irq-gic-v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index fb042ba..2c5ba0e 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);
OpenPOWER on IntegriCloud