ARC: perf: don't bail setup if pct irq missing in device-tree
authorVineet Gupta <vgupta@synopsys.com>
Mon, 27 Jul 2020 04:51:59 +0000 (21:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:25 +0000 (19:14 +0200)
commitec96b4b7514c6687a3d095e342275126c4922e95
treebd0ab1f85fc00108102f40fccb2f368feb9ea4ad
parent7d5026dcd36278888f268c1189ff57c6d6df104f
ARC: perf: don't bail setup if pct irq missing in device-tree

commit feb92d7d3813456c11dce215b3421801a78a8986 upstream.

Current code inadventely bails if hardware supports sampling/overflow
interrupts, but the irq is missing from device tree.

|
| # perf stat -e cycles,instructions,major-faults,minor-faults ../hackbench
| Running with 10 groups 400 process
| Time: 0.921
|
| Performance counter stats for '../hackbench':
|
|   <not supported>      cycles
|   <not supported>      instructions
|                 0      major-faults
|              8679      minor-faults

This need not be as we can still do simple counting based perf stat.
This unborks perf on HSDK-4xD

Cc: <stable@vger.kernel.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/kernel/perf_event.c