[POWERPC] Split xics_teardown_cpu()
authorNathan Fontenot <nfont@austin.ibm.com>
Wed, 6 Feb 2008 20:37:31 +0000 (07:37 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 7 Feb 2008 00:40:19 +0000 (11:40 +1100)
commitc3e8506c54f7263e71289e9e66533236d09f2fb7
treeb2f067efe5e93a8acd35e876cf906697e4d0b7c6
parenta52572ddcd3d16cc5ccc9679bcbb7256d0ddad84
[POWERPC] Split xics_teardown_cpu()

This splits off the kexec path bits of the xics_teardown_cpu() routine
into its own xics_kexec_teardown_cpu() routine.  With the previous
combined routine the CPPR for a cpu that is being removed may have its
CPPR reset in the plpar_eoi() call (which explicitly sets the CPPR to
a non-zero value).  Splitting of the kexec bits of the code prevents
this from happening in the cpu remove path.

Once again, this does not cause the cpu remove from the kernel to
fail, but it does cause cpu dlpar operations to not be able to return
the cpu to the hypervisor.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/hotplug-cpu.c
arch/powerpc/platforms/pseries/kexec.c
arch/powerpc/platforms/pseries/xics.c
arch/powerpc/platforms/pseries/xics.h