]> 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)
commit5c1d665775898759df1323c81e31e379e38f1092
treec9e3f08f88a4404146418633a9b6e676955efc21
parent7130b6094eb679d52e05ee9d90aa78851f371091
powerpc/perf: Fix Power9 test_adder fields

Commit 08907bd080e27 ('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: 08907bd080e2 ("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