[MIPS] Unconditionally writeback and invalidate caches on kexec.
authorNicolas Schichan <nschichan@freebox.fr>
Mon, 20 Aug 2007 13:57:38 +0000 (15:57 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 27 Aug 2007 01:16:59 +0000 (02:16 +0100)
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/machine_kexec.c

index 22960d67cf07c29a6340be7c542b31b98f7ca2aa..85beb9b0b2d0122832017e1d73387f63a8d5d956 100644 (file)
@@ -78,11 +78,8 @@ machine_kexec(struct kimage *image)
         */
        local_irq_disable();
 
-       flush_icache_range(reboot_code_buffer,
-                          reboot_code_buffer + KEXEC_CONTROL_CODE_SIZE);
-
        printk("Will call new kernel at %08lx\n", image->start);
        printk("Bye ...\n");
-       flush_cache_all();
+       __flush_cache_all();
        ((noretfun_t) reboot_code_buffer)();
 }