diff options
author | Barry Song <Baohua.Song@csr.com> | 2011-08-23 18:31:26 -0700 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-08-30 09:22:54 +0200 |
commit | fb0225871eea232fbfd2c4b356f5be172122a0fe (patch) | |
tree | 60a5d6ff3d90ecc82b9a1e034a955d0d8d29b351 | |
parent | c6a389f123b9f68d605bb7e0f9b32ec1e3e14132 (diff) | |
download | linux-stable-fb0225871eea232fbfd2c4b356f5be172122a0fe.tar.gz linux-stable-fb0225871eea232fbfd2c4b356f5be172122a0fe.tar.bz2 linux-stable-fb0225871eea232fbfd2c4b356f5be172122a0fe.zip |
ARM: mach-ux500: 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.
Cc: Jamie Iles <jamie@jamieiles.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | arch/arm/mach-ux500/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c index 1da23bb87c16..76ee3557ae3d 100644 --- a/arch/arm/mach-ux500/cpu.c +++ b/arch/arm/mach-ux500/cpu.c @@ -62,7 +62,7 @@ static inline void ux500_cache_wait(void __iomem *reg, unsigned long mask) { /* wait for the operation to complete */ while (readl_relaxed(reg) & mask) - ; + cpu_relax(); } static inline void ux500_cache_sync(void) |