[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 22960d6..85beb9b 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)();
 }