spapr: move spapr_core_[foo]plug() callbacks close to machine code in spapr.c
commitff9006ddbfd194a946ce3ee46b175919beeaf160
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 Feb 2017 15:02:34 +0000 (2 16:02 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Feb 2017 00:28:27 +0000 (22 11:28 +1100)
treedfe35b8c793b47f8e2e559737391db5451d03c74
parentf844616bf6ff623fd6691b022cb5227faa269675
spapr: move spapr_core_[foo]plug() callbacks close to machine code in spapr.c

spapr_core_pre_plug/spapr_core_plug/spapr_core_unplug() are managing
wiring CPU core into spapr machine state and not internal CPU core state.
So move them from spapr_cpu_core.c to spapr.c where other similar
(spapr_memory_[foo]plug()) callbacks are located, which also matches
x86 target practice.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_cpu_core.c
include/hw/ppc/spapr_cpu_core.h