This function is called from kexec code before the inner caches are disabled to prevent random crashes in the new kernel. Signed-off-by: Thomas Gleixner Index: linux-2.6/arch/arm/mm/cache-l2x0.c =================================================================== --- linux-2.6.orig/arch/arm/mm/cache-l2x0.c +++ linux-2.6/arch/arm/mm/cache-l2x0.c @@ -206,6 +206,12 @@ static void l2x0_flush_range(unsigned lo spin_unlock_irqrestore(&l2x0_lock, flags); } +static void l2x0_cache_disable(void) +{ + l2x0_inv_all(); + writel(0, l2x0_base + L2X0_CTRL); +} + void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask) { __u32 aux; @@ -262,6 +268,7 @@ void __init l2x0_init(void __iomem *base outer_cache.clean_range = l2x0_clean_range; outer_cache.flush_range = l2x0_flush_range; outer_cache.sync = l2x0_cache_sync; + outer_cache.disable = l2x0_cache_disable; printk(KERN_INFO "%s cache controller enabled\n", type); printk(KERN_INFO "l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x\n",