Files
linux/kernel
Vivek Goyal 4784cd9c1c kexec: migrate to reboot cpu
commit c97102ba96 upstream.

Commit 1b3a5d02ee ("reboot: move arch/x86 reboot= handling to generic
kernel") moved reboot= handling to generic code.  In the process it also
removed the code in native_machine_shutdown() which are moving reboot
process to reboot_cpu/cpu0.

I guess that thought must have been that all reboot paths are calling
migrate_to_reboot_cpu(), so we don't need this special handling.  But
kexec reboot path (kernel_kexec()) is not calling
migrate_to_reboot_cpu() so above change broke kexec.  Now reboot can
happen on non-boot cpu and when INIT is sent in second kerneo to bring
up BP, it brings down the machine.

So start calling migrate_to_reboot_cpu() in kexec reboot path to avoid
this problem.

Bisected by WANG Chao.

Reported-by: Matthew Whitehead <mwhitehe@redhat.com>
Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Tested-by: Baoquan He <bhe@redhat.com>
Tested-by: WANG Chao <chaowang@redhat.com>
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-09 12:25:07 -08:00
..
2013-04-22 07:09:06 -07:00
2013-12-04 11:05:39 -08:00
2012-05-31 17:49:27 -07:00
2013-12-04 11:05:55 -08:00
2012-03-28 18:30:03 +01:00
2012-12-20 17:40:19 -08:00
2014-01-09 12:25:07 -08:00
2013-09-13 15:09:52 +02:00
2013-05-05 00:16:35 -04:00
2014-01-09 12:25:07 -08:00
2013-09-11 15:58:27 -07:00