]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 17 Aug 2020 04:36:15 +0000 (21:36 -0700)
commit74de6c3d1845132392366861a64d6335ffa7a2bc
treeec7c0bf7fda53ea9f7b6ef73c76a618f35dd36df
parentc66b7f90cd8d5d91793b3f2d310e83c28f2ae8a5
ARC: perf: don't bail setup if pct irq missing in device-tree

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>
arch/arc/kernel/perf_event.c