diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-12-15 10:49:09 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 08:51:28 +0100 |
commit | 17b4fbc0e8620365009bc1bef65ccd5bfd1135be (patch) | |
tree | e430b615bf2f505cad89f16299a1df30d84bdbd9 | |
parent | 4ba60d6b2c9bd2317fa5726659f33dc4924d4863 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c index 4fde2abd12b..d76767f6509 100644 --- a/arch/arm/kernel/machine_kexec.c +++ b/arch/arm/kernel/machine_kexec.c @@ -60,6 +60,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 */ |