Skip to content

Commit

Permalink
MIPS: Make VPE count to be one-based.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven J. Hill committed Sep 13, 2012
1 parent ec167f2 commit 3234f44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/kernel/irq-gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3234f44

Please sign in to comment.