]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba3c533e2d6f2319e702436fcbc57e59a18a57e8
tree23f669aec84929c070db8996e2e8d8598555fb6a
parent8e701de1f68e505af6c2fc2ba9c3b19754bda964
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