diff options
author | Steven J. Hill <sjhill@mips.com> | 2012-09-01 01:23:49 +0400 |
---|---|---|
committer | Steven J. Hill <sjhill@mips.com> | 2012-09-14 00:43:51 +0400 |
commit | 3234f4466934f08136736790e3de3c6debc71271 (patch) | |
tree | b825db51dd6262ba86f880d68dbd8f312a8d87e4 /arch/mips/kernel | |
parent | ec167f2d9b9ba784cc17d4449973e68665800388 (diff) | |
download | linux-3234f4466934f08136736790e3de3c6debc71271.tar.xz |
MIPS: Make VPE count to be one-based.
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>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/irq-gic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kernel/irq-gic.c b/arch/mips/kernel/irq-gic.c index c2bec301e7ad..485e6a961b31 100644 --- a/arch/mips/kernel/irq-gic.c +++ b/arch/mips/kernel/irq-gic.c @@ -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); |