Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1caf3092 authored by Barry Song's avatar Barry Song Committed by Russell King
Browse files

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: default avatarBarry Song <Baohua.Song@csr.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarJamie Iles <jamie@jamieiles.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 8c369264
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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 */
	/* wait for cache operation by line or way to complete */
	while (readl_relaxed(reg) & mask)
	while (readl_relaxed(reg) & mask)
		;
		cpu_relax();
}
}


#ifdef CONFIG_CACHE_PL310
#ifdef CONFIG_CACHE_PL310