powerpc/pseries: Factor out common cpu hotplug code
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Wed, 16 Dec 2015 20:51:26 +0000 (14:51 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 Dec 2015 11:41:01 +0000 (22:41 +1100)
commitd98389f375329b7a37d0e9211a1216d9141d7a5f
tree06f70c905f414156eb6f1b6bd94c02cad39417f1
parent183deeea5871a6f750ec64ab1cff85fb089d38df
powerpc/pseries: Factor out common cpu hotplug code

Re-factor the cpu hotplug code to support doing cpu hotplug completely in
the kernel and using the existing sysfs probe/release interfaces. This
patch pulls out pieces of existing cpu hotplug code into common routines,
dlpar_cpu_add() and dlpar_cpu_remove(), to be used by both interfaces.
There are no functional changes introduced.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hotplug-cpu.c