edac: arm64: Check for ECC errors on panic

Check for ecc errors on panic on all processors

Change-Id: I2a68644afb2730a69aca35abb1f10899a11514dd
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
[stepanm@codeaurora.org: update argument to arm64_check_cache_ecc()]
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
[satyap: trivial merge conflict resolution]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
Rohit Vaswani 2014-09-23 13:23:18 -07:00 committed by David Keitel
parent 3182b97bad
commit 42fd183193

View file

@ -53,6 +53,7 @@
#include <asm/tlbflush.h>
#include <asm/ptrace.h>
#include <asm/virt.h>
#include <asm/edac.h>
#define CREATE_TRACE_POINTS
#include <trace/events/ipi.h>
@ -719,6 +720,7 @@ static void ipi_cpu_stop(unsigned int cpu, struct pt_regs *regs)
pr_crit("CPU%u: stopping\n", cpu);
show_regs(regs);
dump_stack();
arm64_check_cache_ecc(NULL);
raw_spin_unlock(&stop_lock);
}