]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 15 Aug 2012 18:30:44 +0000 (20:30 +0200)
commit7d2c262df51ffa6330830b0d1ecb8ddc2eaf2fe7
tree57516a21488b23481b040fd2a751e453036d75cb
parentd9eb0b760b23e1b9a5e5f48d4889ee0647244eb4
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