MIPS: perf: Allow for more perf events
authorJames Hogan <james.hogan@imgtec.com>
Fri, 4 Jul 2014 10:08:56 +0000 (11:08 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:38 +0000 (00:06 +0200)
commit67dca667516529b24f98dd9d1d4e832ff705054b
tree6389a50a4347d3613a28caeda3a633f9018d2b1a
parent9f07925c43b0f082ff39449ebd0f51b38abd23f5
MIPS: perf: Allow for more perf events

In mipsxx_pmu_map_raw_event(), set event_id to base_id after the cpu
type conditional code to allow that code to override the base_id to use
more bits from the config and a higher bit for parity.

This will allow cores with up to 512 events between all even/odd
counters (an 8-bit event id) such as P5600 to use bit 8 for parity.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7243/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/perf_event_mipsxx.c