OSDN Git Service

spapr: Add a helper for node0_size calculation
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 3 Jul 2014 03:10:06 +0000 (13:10 +1000)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:48 +0000 (12:50 +0200)
commitb082d65a30078d176f8d1fbb3b99e1449fa2fcff
tree55e22734c7bc903671da04aa3eeb90c482920767
parent6010818c30ce9c796b4e22fd261fc6fea1cecbfc
spapr: Add a helper for node0_size calculation

In multiple places there is a node0_size variable calculation
which assumes that NUMA node #0 and memory node #0 are the same
things which they are not. Since we are going to change it and
do not want to change it in multiple places, let's make a helper.

This adds a spapr_node0_size() helper and makes use of it.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c