]> git.baikalelectronics.ru Git - kernel.git/commit
perf/arm-cci: Remove pointless PMU disabling
authorRobin Murphy <robin.murphy@arm.com>
Mon, 14 May 2018 13:34:52 +0000 (14:34 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 21 May 2018 17:12:53 +0000 (18:12 +0100)
commitf4d9bff72f166840de7ba2ca8252b9ad883fa918
treea91e9031e6abce0166d3a2d43cdaf9855312b160
parent45c173dd21dccbe051831fd4ffdda8130270f8b1
perf/arm-cci: Remove pointless PMU disabling

The CCI PMU driver bears some legacy remnants of the arm_pmu framework
from when it was split in ff83d99657da ("bus: cci: move away from
arm_pmu framework"). In particular this perf_pmu_{dis,en}able() dance
around pmu->add which was fixed for arm_pmu in df50097f2bb9
("drivers/perf: arm_pmu: remove pointless PMU disabling").

For the exact same reasons (i.e. perf core already does this around the
call anyway), give cci_pmu_add() the exact same change, which also
prevents having to export those core functions to build it as a module.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm-cci.c