Commit 97ce9a8d authored by Nicolas Schichan's avatar Nicolas Schichan Committed by Ralf Baechle

[MIPS] Unconditionally writeback and invalidate caches on kexec.

Signed-off-by: default avatarNicolas Schichan <nschichan@freebox.fr>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9f90a03a
...@@ -78,11 +78,8 @@ machine_kexec(struct kimage *image) ...@@ -78,11 +78,8 @@ machine_kexec(struct kimage *image)
*/ */
local_irq_disable(); 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("Will call new kernel at %08lx\n", image->start);
printk("Bye ...\n"); printk("Bye ...\n");
flush_cache_all(); __flush_cache_all();
((noretfun_t) reboot_code_buffer)(); ((noretfun_t) reboot_code_buffer)();
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment