spapr: Clean up cpu realize/unrealize paths
commitb1d40d6e09c205dac108e0c21ec2fdaeb1bbaae8
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 13 Jun 2018 01:48:26 +0000 (13 11:48 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 16 Jun 2018 06:32:33 +0000 (16 16:32 +1000)
treeeb13994ae4909a3cbd3afc4bb143315041bf134b
parent2100b6b21ef9c64a3cca1582dbd573c17c97bc4a
spapr: Clean up cpu realize/unrealize paths

spapr_cpu_init() and spapr_cpu_destroy() are only called from the spapr
cpu core realize/unrealize paths, and really can only be called from there.

Those are all short functions, so fold the pairs together for simplicity.
While we're there rename some functions and change some parameter types
for brevity and clarity.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/spapr_cpu_core.c