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)
commit8c218578fcbbbdb10416c8614658bf32e3bf1655
treec9e3f08f88a4404146418633a9b6e676955efc21
parentba4a648f12f4cd0a8003dd229b6ca8a53348ee4b
powerpc/perf: Fix Power9 test_adder fields

Commit 8d911904f3ce4 ('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: 8d911904f3ce ("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