summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-12-15 10:49:09 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:01:37 +0200
commit8280c41dc2d47aa7291cad3256f87e073ea785f8 (patch)
tree035f1152a1f0ad6707d311d1454f1bc9405aac4b
parentd2802da3a7a6c8445a53ec1dd07711f1e444ac9d (diff)
ARM: kexec: Call the per cpu calls on crashing cpu as well
Previous the per cpu callbacks where only executed on the none-crashing cpu. ST-Ericsson Linux next: - ST-Ericsson ID: 370799 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I0640f9121fb55e94f3939104d0a0fef224d35e7c Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42666 Reviewed-by: QABUILD Reviewed-by: Johan BJORNSTEDT <johan.bjornstedt@stericsson.com>
-rw-r--r--arch/arm/kernel/machine_kexec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c
index 7455ca0fc51..4f868fc5174 100644
--- a/arch/arm/kernel/machine_kexec.c
+++ b/arch/arm/kernel/machine_kexec.c
@@ -84,6 +84,8 @@ void machine_crash_shutdown(struct pt_regs *regs)
local_irq_disable();
+ atomic_notifier_call_chain(&crash_percpu_notifier_list, 0, NULL);
+
atomic_set(&waiting_for_crash_ipi, num_online_cpus() - 1);
smp_call_function(machine_crash_nonpanic_core, NULL, false);
msecs = 1000; /* Wait at most a second for the other cpus to stop */