[patch 2/2] arm: Implement l2x0 cache disable functions
Catalin Marinas
catalin.marinas at arm.com
Mon Jul 5 08:13:04 EDT 2010
On Mon, 2010-07-05 at 12:52 +0100, Thomas Gleixner wrote:
> Add flush_all, inv_all and disable functions to the l2x0 code. These
> functions are called from kexec code to prevent random crashes in the
> new kernel.
>
> Platforms like OMAP which control L2 enable/disable via SMI mode can
> override the outer_cache.disable() function to implement their own.
>
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
[...]
> -static inline void l2x0_inv_all(void)
> +static void l2x0_flush_all(void)
> +{
> + unsigned long flags;
> +
> + /* clean all ways */
Minor point - /* clean and invalidate all ways */
But the patch looks good to me:
Acked-by: Catalin Marinas <catalin.marinas at arm.com>
--
Catalin
More information about the linux-arm-kernel
mailing list