Browse Source

[MIPS] Unconditionally writeback and invalidate caches on kexec.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Nicolas Schichan 17 years ago
parent
commit
97ce9a8d6c
1 changed files with 1 additions and 4 deletions
  1. 1 4
      arch/mips/kernel/machine_kexec.c

+ 1 - 4
arch/mips/kernel/machine_kexec.c

@@ -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)();
 }
 }