powerpc/xics: Initialization code cleanups
authorMilton Miller <miltonm@bga.com>
Fri, 10 Oct 2008 01:56:33 +0000 (01:56 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 13 Oct 2008 05:24:18 +0000 (16:24 +1100)
commita244a957ab15ddbeccf4018ef4b3ac8f5fd1566d
tree1cdfb55a37e5b8ef542fcd2108d17dd58c739e7f
parent188bdddd243e6872608099bd1142a03b70571132
powerpc/xics: Initialization code cleanups

We only need to check the ibm,interrupt-server#-size property once, not
once per global server and thread.

We can use !CONFIG_SMP cpu masks and hard_smp_processor_id() to avoid an ifdef.
Put the node when breaking out of the loop on lpar systems.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/xics.c