mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] irqchip/gic-v3: fix quiescence check in gic_enable_redist
@ 2016-05-11 19:23 Andrew Jones
  0 siblings, 0 replies; only message in thread
From: Andrew Jones @ 2016-05-11 19:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: sudeep.holla, marc.zyngier

Signed-off-by: Andrew Jones <drjones@redhat.com>
---
I'm unaware of any problems this may have caused. I only
just saw it while reading over the code.

 drivers/irqchip/irq-gic-v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index 5b7d3c2129d87..518bc1799b4dc 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -147,7 +147,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);
-- 
2.4.11

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-11 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-11 19:23 [PATCH] irqchip/gic-v3: fix quiescence check in gic_enable_redist Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®