pseries: Move XICS initialization before cpu initialization
commit7b5651605836fd29572fd4c8769af5378d351712
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 13 Mar 2013 15:53:28 +0000 (13 15:53 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:45 +0000 (22 15:28 +0100)
tree9085f451b4e957d915df7b3f4ffc1bd145486ab0
parentc6304a4a6822f0e3e45c94b89d4e328057355683
pseries: Move XICS initialization before cpu initialization

Currently, the pseries machine initializes the cpus, then the XICS
interrupt controller.  However, to support the upcoming in-kernel XICS
implementation we will need to initialize the irq controller before the
vcpus.  This patch makes the necesssary rearrangement.  This means the
xics init code can no longer auto-detect the number of cpus ("interrupt
servers" in XICS terminology) and so we must pass that in explicitly from
the platform code.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Ben Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c
hw/ppc/xics.c
hw/xics.h