x86/core, x86/xen/smp: Use 'die_complete' completion when taking CPU down
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 31 Oct 2014 15:49:32 +0000 (11:49 -0400)
committerIngo Molnar <mingo@kernel.org>
Mon, 10 Nov 2014 10:16:40 +0000 (11:16 +0100)
commit54279552bd260532d90e7a59fbc931924bbb0f7b
treef62846d03d74c2571742ba070dcfc9664748078b
parente6023367d779060fddc9a52d1f474085b2b36298
x86/core, x86/xen/smp: Use 'die_complete' completion when taking CPU down

Commit 2ed53c0d6cc9 ("x86/smpboot: Speed up suspend/resume by
avoiding 100ms sleep for CPU offline during S3") introduced
completions to CPU offlining process. These completions are not
initialized on Xen kernels causing a panic in
play_dead_common().

Move handling of die_complete into common routines to make them
available to Xen guests.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Cc: tianyu.lan@intel.com
Cc: konrad.wilk@oracle.com
Cc: xen-devel@lists.xenproject.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1414770572-7950-1-git-send-email-boris.ostrovsky@oracle.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/smp.h
arch/x86/kernel/smpboot.c
arch/x86/xen/smp.c