From: Thomas Gleixner <[tglx@linutronix.de]> Date: Sat, 31 Jul 2010 15:36:06 +0000 (+0530) Subject: arm: Disable outer (L2) cache in kexec X-Git-Tag: v2.6.37-rc1~23^2^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae360a78f41164e7f9c4cf846696b5b6d8dae5c8;p=pandora-kernel.git arm: Disable outer (L2) cache in kexec kexec does not disable the outer cache before disabling the inner caches in cpu_proc_fin(). So L2 is enabled across the kexec jump. When the new kernel enables chaches again, it randomly crashes. Disabling L2 before calling cpu_proc_fin() cures the problem. Disabling L2 requires the following new functions: flush_all(), inv_all() and disable(). Add them to outer_cache_fns and call them from the kexec code. Signed-off-by: Thomas Gleixner Acked-by: Catalin Marinas Acked-by: Linus Walleij --- Reading git-diff-tree failed