]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Fix pmu_count to count only nest imc pmus
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Wed, 22 Nov 2017 05:15:38 +0000 (10:45 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 22 Nov 2017 12:04:23 +0000 (23:04 +1100)
commit7a4085717721a203ff2090493a000102e60fa359
tree2f322ae62f678870e62d0c9b01afa1005c87b3fa
parent53c8b2ae97b2527994bda94c8226fc81372a86cf
powerpc/perf: Fix pmu_count to count only nest imc pmus

"pmu_count" in opal_imc_counters_probe() is intended to hold
the number of successful nest imc pmu registerations. But
current code also counts other imc units like core_imc and
thread_imc. Patch add a check to count only nest imc pmus.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-imc.c