Skip to content

Commit

Permalink
[MIPS] Unconditionally writeback and invalidate caches on kexec.
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Nicolas Schichan authored and Ralf Baechle committed Aug 27, 2007
1 parent 9f90a03 commit 97ce9a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/mips/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)();
}

0 comments on commit 97ce9a8

Please sign in to comment.