summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorVijaya Kumar K <vijay.kilari@gmail.com>2013-08-14 13:28:28 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-08-20 00:14:46 +0100
commit4f9b4fb7a2091eec339413a460b1665758401828 (patch)
tree56755a6a8234cfa647a621bec35b9019def3edc3 /arch
parent2a2822475d0e734adffab72644329d9c042ce2e1 (diff)
downloadlinux-4f9b4fb7a2091eec339413a460b1665758401828.tar.gz
linux-4f9b4fb7a2091eec339413a460b1665758401828.tar.bz2
linux-4f9b4fb7a2091eec339413a460b1665758401828.zip
ARM: 7815/1: kexec: offline non panic CPUs on Kdump panic
In case of normal kexec kernel load, all cpu's are offlined before calling machine_kexec().But in case crash panic cpus are relaxed in machine_crash_nonpanic_core() SMP function but not offlined. When crash kernel is loaded with kexec and on panic trigger machine_kexec() checks for number of cpus online. If more than one cpu is online machine_kexec() fails to load with below error kexec: error: multiple CPUs still online In machine_crash_nonpanic_core() SMP function, offline CPU before cpu_relax Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/machine_kexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c
index d7c82df69243..57221e349a7c 100644
--- a/arch/arm/kernel/machine_kexec.c
+++ b/arch/arm/kernel/machine_kexec.c
@@ -82,6 +82,7 @@ void machine_crash_nonpanic_core(void *unused)
crash_save_cpu(&regs, smp_processor_id());
flush_cache_all();
+ set_cpu_online(smp_processor_id(), false);
atomic_dec(&waiting_for_crash_ipi);
while (1)
cpu_relax();