spapr: Consolidate HPT freeing code into a routine
commit06ec79e865a4a496e762a83126d00d0ed39205f5
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Wed, 17 May 2017 03:49:20 +0000 (17 09:19 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 24 May 2017 01:39:52 +0000 (24 11:39 +1000)
tree8707d7689dcf67b226f44d5b9fe8557e38798bb7
parentc8a98293f7fe672fc3b7a3caafede701fbb3180e
spapr: Consolidate HPT freeing code into a routine

Consolidate the code that frees HPT into a separate routine
spapr_free_hpt() as the same chunk of code is called from two places.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
include/hw/ppc/spapr.h