summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-l2x0.c
diff options
context:
space:
mode:
authorBarry Song <21cnbao@gmail.com>2011-09-09 10:30:34 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-10-17 09:11:36 +0100
commit1caf30924f71ae16a26aa59b02a6401f467bf1c8 (patch)
tree35fe16a1ed060632db361f5444285aad24bbaed3 /arch/arm/mm/cache-l2x0.c
parent8c369264b6de3b2ab796f330a4d85770a6b8b033 (diff)
downloadtalos-op-linux-1caf30924f71ae16a26aa59b02a6401f467bf1c8.tar.gz
talos-op-linux-1caf30924f71ae16a26aa59b02a6401f467bf1c8.zip
ARM: 7089/1: L2X0: add explicit cpu_relax() for busy wait loop
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>
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r--arch/arm/mm/cache-l2x0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index db4484f5bf98..a78044885ed5 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -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
OpenPOWER on IntegriCloud