From: Tom Rini Date: Thu, 13 Aug 2015 09:20:10 -0400 Subject: [U-Boot] [U-Boot, v3, 3/4] ARM: cache: implement a default weak flush_cache() function In-Reply-To: <1437968418-21319-4-git-send-email-josh.wu@atmel.com> References: <1437968418-21319-4-git-send-email-josh.wu@atmel.com> Message-ID: <20150813132010.GX25532@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jul 27, 2015 at 11:40:17AM +0800, Wu, Josh wrote: > Current many cpu use the same flush_cache() function, which just call > the flush_dcache_range(). > So implement a weak flush_cache() for all the cpus to use. > > In original weak flush_cache() in arch/arm/lib/cache.c, there has some > code for ARM1136 & ARM926ejs. But in the arch/arm/cpu/arm1136/cpu.c and > arch/arm/cpu/arm926ejs/cache.c, there implements a real flush_cache() > function as well. That means the original code for ARM1136 & ARM926ejs > in weak flush_cache() of arch/arm/lib/cache.c is totally useless. > > So in this patch remove such code in flush_cache() and only call > flush_dcache_range(). > > Signed-off-by: Josh Wu Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: