MIPS: Make VPE count to be one-based.
authorSteven J. Hill <sjhill@mips.com>
Fri, 31 Aug 2012 21:23:49 +0000 (16:23 -0500)
committerSteven J. Hill <sjhill@mips.com>
Thu, 13 Sep 2012 20:43:51 +0000 (15:43 -0500)
When dealing with multiple VPEs, the count needs to be one-based
for correct initialization of the GIC.

Signed-off-by: Steven J. Hill <sjhill@mips.com>
arch/mips/kernel/irq-gic.c

index c2bec301e7ade8b0b5a4a9865c458a90081962eb..485e6a961b317ea0f6778b04e57c8c08d3ad8c02 100644 (file)
@@ -312,6 +312,7 @@ void __init gic_init(unsigned long gic_base_addr,
 
        numvpes = (gicconfig & GIC_SH_CONFIG_NUMVPES_MSK) >>
                  GIC_SH_CONFIG_NUMVPES_SHF;
+       numvpes = numvpes + 1;
 
        gic_basic_init(numintrs, numvpes, intr_map, intr_map_size);