diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2011-04-05 15:12:09 +1000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-04-08 11:32:21 +0200 |
commit | c7a5c0c9280c2ddaa875e3cafb3df16a96af809c (patch) | |
tree | 5530370b8dab8bd65e177a2bc7a1fdfe854d8b57 /hw/spapr.h | |
parent | 8804f57b531e4887ad9521c9abb9e0bbbcb1dd4e (diff) |
pseries: Abolish envs array
Currently the pseries machine init code builds up an array, envs, of
CPUState pointers for all the cpus in the system. This is kind of
pointless, given the generic code already has a perfectly good linked list
of the cpus.
In addition, there are a number of places which assume that the cpu's
cpu_index field is equal to its index in this array. This is true in
practice, because cpu_index values are just assigned sequentially, but
it's conceptually incorrect and may not always be true.
Therefore, this patch abolishes the envs array, and explicitly uses the
generic cpu linked list and cpu_index values throughout.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/spapr.h')
0 files changed, 0 insertions, 0 deletions