Skip to content

Commit

Permalink
ARM: 7089/1: L2X0: add explicit cpu_relax() for busy wait loop
Browse files Browse the repository at this point in the history
using cpu_relax in busy loops is a well-known idiom in the kernel.
It's more for documentation purposes than technically needed here.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Barry Song authored and Russell King committed Oct 17, 2011
1 parent 8c36926 commit 1caf309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mm/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static inline void cache_wait_way(void __iomem *reg, unsigned long mask)
{
/* wait for cache operation by line or way to complete */
while (readl_relaxed(reg) & mask)
;
cpu_relax();
}

#ifdef CONFIG_CACHE_PL310
Expand Down

0 comments on commit 1caf309

Please sign in to comment.