]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: arm_pmu: remove pointless PMU disabling
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:44 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commitdf50097f2bb94dd00675e528b33dc20a9f0c80bd
tree7f3ebaa6a184807753b7ed09b0e7c217e0b5fa3b
parent219e8ec02c4bca0169fe620bf9d3a099b59dab70
drivers/perf: arm_pmu: remove pointless PMU disabling

We currently disable the PMU temporarily in armpmu_add(). We may have
required this historically, but the perf core always disables an event's
PMU when calling event::pmu::add(), so this is not necessary.

We don't do similarly in armpmu_del(), or elsewhere, so this is
unnecessary and inconsistent, and only serves to confuse the reader.

Remove the pointless disable, simplifying armpmu_add() in the process.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c