]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Fix Power9 test_adder fields
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Fri, 26 May 2017 08:08:27 +0000 (13:38 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Jun 2017 11:21:19 +0000 (21:21 +1000)
commit5c72ac41144515edd1930ffa7747da98ad8f638e
treec9e3f08f88a4404146418633a9b6e676955efc21
parent5d584ec850fb1094e9ee9310e4eb379465518294
powerpc/perf: Fix Power9 test_adder fields

Commit 3c9253a43b46b ('powerpc/perf: Add restrictions to PMC5 in power9 DD1')
was added to restrict the use of PMC5 in Power9 DD1. Intention was to disable
the use of PMC5 using raw event code. But instead of updating the
power9_isa207_pmu structure (used on DD1), the commit incorrectly updated the
power9_pmu structure. Fix it.

Fixes: 3c9253a43b46 ("powerpc/perf: Add restrictions to PMC5 in power9 DD1")
Reported-by: Shriya <shriyak@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Tested-by: Shriya <shriyak@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/power9-pmu.c