powerpc/mpic: Invert the meaning of MPIC_PRIMARY
It turns out that there are only 2 in-tree platforms which use MPICs which are not "primary": IBM Cell and PowerMac. To reduce the complexity of the typical board setup code, invert the MPIC_PRIMARY bit into MPIC_SECONDARY. Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
996983b75c
commit
be8bec56df
@@ -155,7 +155,7 @@ static void __init holly_init_IRQ(void)
|
||||
#endif
|
||||
|
||||
mpic = mpic_alloc(NULL, 0,
|
||||
MPIC_PRIMARY | MPIC_BIG_ENDIAN | MPIC_WANTS_RESET |
|
||||
MPIC_BIG_ENDIAN | MPIC_WANTS_RESET |
|
||||
MPIC_SPV_EOI | MPIC_NO_PTHROU_DIS | MPIC_REGSET_TSI108,
|
||||
24,
|
||||
NR_IRQS-4, /* num_sources used */
|
||||
|
@@ -82,7 +82,7 @@ static void __init linkstation_init_IRQ(void)
|
||||
{
|
||||
struct mpic *mpic;
|
||||
|
||||
mpic = mpic_alloc(NULL, 0, MPIC_PRIMARY | MPIC_WANTS_RESET,
|
||||
mpic = mpic_alloc(NULL, 0, MPIC_WANTS_RESET,
|
||||
4, 32, " EPIC ");
|
||||
BUG_ON(mpic == NULL);
|
||||
|
||||
|
@@ -109,7 +109,7 @@ static void __init mpc7448_hpc2_init_IRQ(void)
|
||||
#endif
|
||||
|
||||
mpic = mpic_alloc(NULL, 0,
|
||||
MPIC_PRIMARY | MPIC_BIG_ENDIAN | MPIC_WANTS_RESET |
|
||||
MPIC_BIG_ENDIAN | MPIC_WANTS_RESET |
|
||||
MPIC_SPV_EOI | MPIC_NO_PTHROU_DIS | MPIC_REGSET_TSI108,
|
||||
24,
|
||||
NR_IRQS-4, /* num_sources used */
|
||||
|
@@ -84,7 +84,7 @@ static void __init storcenter_init_IRQ(void)
|
||||
{
|
||||
struct mpic *mpic;
|
||||
|
||||
mpic = mpic_alloc(NULL, 0, MPIC_PRIMARY | MPIC_WANTS_RESET,
|
||||
mpic = mpic_alloc(NULL, 0, MPIC_WANTS_RESET,
|
||||
16, 32, " OpenPIC ");
|
||||
BUG_ON(mpic == NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user