aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/lib/cache-pl310.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/lib/cache-pl310.c')
-rw-r--r--arch/arm/lib/cache-pl310.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/cache-pl310.c b/arch/arm/lib/cache-pl310.c
index 1296ba6efda..bbaaaa4157a 100644
--- a/arch/arm/lib/cache-pl310.c
+++ b/arch/arm/lib/cache-pl310.c
@@ -33,7 +33,7 @@ static void pl310_background_op_all_ways(u32 *op_reg)
/* Invalidate all ways */
writel(way_mask, op_reg);
/* Wait for all ways to be invalidated */
- while (readl(op_reg) && way_mask)
+ while (readl(op_reg) & way_mask)
;
pl310_cache_sync();
}