[RFC 03/10] MIPS: use arch_shutdown() for flushing caches

Antony Pavlov antonynpavlov at gmail.com
Tue Apr 15 00:38:27 PDT 2014


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 arch/mips/lib/shutdown.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/lib/shutdown.c b/arch/mips/lib/shutdown.c
index 6feec9b..09651a7 100644
--- a/arch/mips/lib/shutdown.c
+++ b/arch/mips/lib/shutdown.c
@@ -3,8 +3,10 @@
  * memory/cache state.
  */
 #include <common.h>
+#include <asm/cache.h>
 
 void arch_shutdown(void)
 {
+	flush_cache_all();
 }
 EXPORT_SYMBOL(arch_shutdown);
-- 
1.9.0




More information about the barebox mailing list