MIPS: perf: Change the "mips_perf_event" table unsupported indicator.
authorAl Cooper <alcooperx@gmail.com>
Fri, 13 Jul 2012 20:44:50 +0000 (16:44 -0400)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 11 Oct 2012 09:02:41 +0000 (11:02 +0200)
commitc5600b2dd9fc7318feddf69f127ca793437c714d
tree23f669aec84929c070db8996e2e8d8598555fb6a
parent485172b3dff29f888a88d3dba8caec5d589a4049
MIPS: perf: Change the "mips_perf_event" table unsupported indicator.

Change the indicator from 0xffffffff in the "event_id" member to
zero in the "cntr_mask" member. This removes the need to initialize
entries that are unsupported. This also solves a problem where the
number of entries in the table was increased based on a globel enum
used for all platforms, but the new unsupported entries were not added
for mips. This was leaving new table entries of all zeros that we not
marked UNSUPPORTED.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/4110/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/perf_event_mipsxx.c