]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, kexec: Make sure to stop all CPUs before exiting the kernel
authorAlok Kataria <akataria@vmware.com>
Mon, 11 Oct 2010 21:37:08 +0000 (14:37 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:03:03 +0000 (11:03 -0800)
commit3367a9e9ba6101135ecf0540bfa1ec6530f98bdc
tree9ff4a64f72f69e7f10423d2721d1700eb92a4897
parentfaee3f8d2565b40f9d9c17b6aebd238275bd7397
x86, kexec: Make sure to stop all CPUs before exiting the kernel

commit 76fac077db6b34e2c6383a7b4f3f4f7b7d06d8ce upstream.

x86 smp_ops now has a new op, stop_other_cpus which takes a parameter
"wait" this allows the caller to specify if it wants to stop until all
the cpus have processed the stop IPI.  This is required specifically
for the kexec case where we should wait for all the cpus to be stopped
before starting the new kernel.  We now wait for the cpus to stop in
all cases except for panic/kdump where we expect things to be broken
and we are doing our best to make things work anyway.

This patch fixes a legitimate regression, which was introduced during
2.6.30, by commit id 4ef702c10b5df18ab04921fc252c26421d4d6c75.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
LKML-Reference: <1286833028.1372.20.camel@ank32.eng.vmware.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/smp.h
arch/x86/kernel/reboot.c
arch/x86/kernel/smp.c
arch/x86/xen/enlighten.c
arch/x86/xen/smp.c