diff options
author | Steven J. Hill <sjhill@mips.com> | 2012-08-31 17:23:49 -0400 |
---|---|---|
committer | Steven J. Hill <sjhill@mips.com> | 2012-09-13 16:43:51 -0400 |
commit | 3234f4466934f08136736790e3de3c6debc71271 (patch) | |
tree | b825db51dd6262ba86f880d68dbd8f312a8d87e4 /arch/mips/kernel/irq-gic.c | |
parent | ec167f2d9b9ba784cc17d4449973e68665800388 (diff) |
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/irq-gic.c')
-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, | |||
312 | 312 | ||
313 | numvpes = (gicconfig & GIC_SH_CONFIG_NUMVPES_MSK) >> | 313 | numvpes = (gicconfig & GIC_SH_CONFIG_NUMVPES_MSK) >> |
314 | GIC_SH_CONFIG_NUMVPES_SHF; | 314 | GIC_SH_CONFIG_NUMVPES_SHF; |
315 | numvpes = numvpes + 1; | ||
315 | 316 | ||
316 | gic_basic_init(numintrs, numvpes, intr_map, intr_map_size); | 317 | gic_basic_init(numintrs, numvpes, intr_map, intr_map_size); |
317 | 318 | ||