From: Barry Song Date: Wed, 24 Aug 2011 01:31:26 +0000 (-0700) Subject: ARM: mach-ux500: add explicit cpu_relax() for busy wait loop X-Git-Tag: next-20110826~88^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=791d481ee4a6591c084627daa798570865fe2029;p=karo-tx-linux.git 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 Acked-by: Arnd Bergmann Signed-off-by: Barry Song Signed-off-by: Linus Walleij --- 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)