OSDN Git Service

powerpc/mpic: Pass first free vector number to mpic_setup_error_int()
authorBharat Bhushan <Bharat.Bhushan@nxp.com>
Fri, 29 Jun 2018 10:24:32 +0000 (15:54 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Jul 2018 11:58:09 +0000 (21:58 +1000)
commitfca7bf946e31688edce446fdaa571ccf77e24687
tree87e82200dffc020248d7a970d3202cd73dce719e
parentfdf743c5c51d5b45db4dada39109549d2e49eb62
powerpc/mpic: Pass first free vector number to mpic_setup_error_int()

Update the comment to account for the spurious interrupt number. The
code was already accounting for it, but that was unclear because it
was achieved by mpic_setup_error_int() knowing that the number it was
passed was the last used vector, rather than the first free vector.

So change the meaning of the argument to the first free vector and
update the caller to pass 13, instead of 12, to achieve the same
result.

Signed-off-by: Bharat Bhushan <Bharat.Bhushan@nxp.com>
[mpe: Rewrite change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/fsl_mpic_err.c
arch/powerpc/sysdev/mpic.c