diff options
author | Milton Miller <[email protected]> | 2011-05-10 19:30:18 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2011-05-19 15:31:49 +1000 |
commit | 67347eba156d64150be73c9f5797342a66b123d9 (patch) | |
tree | 6778f8fe44efc633e9169a722628d8e86d9eeb17 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | c42385cd4533b5ba9b9dd0034285cfcfd7982708 (diff) |
powerpc/mpc62xx_pic: Fix get_irq handling of NO_IRQ
If none of irq category bits were set mpc52xx_get_irq() would pass
NO_IRQ_IGNORE (-1) to irq_linear_revmap, which does an unsigned compare
and declares the interrupt above the linear map range. It then punts
to irq_find_mapping, which performs a linear search of all irqs,
which will likely miss and only then return NO_IRQ.
If no status bit is set, then we should return NO_IRQ directly.
The interrupt should not be suppressed from spurious counting, in fact
that is the definition of supurious.
Signed-off-by: Milton Miller <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions