]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: arm_pmu: Remove unnecessary isb instruction
authorAndrew Murray <andrew.murray@arm.com>
Tue, 9 Apr 2019 19:22:10 +0000 (20:22 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 24 Apr 2019 14:34:31 +0000 (15:34 +0100)
commitd0665f2b8ad1b6b5c6794ad62bcc612019e80472
treecead3b66ba563216de2f225829cc4401d2665b5e
parent534236905941b598d7f60268b4c6406f77cb426c
arm64: arm_pmu: Remove unnecessary isb instruction

The armv8pmu_enable_event_counter function issues an isb instruction
after enabling a pair of counters - this doesn't provide any value
and is inconsistent with the armv8pmu_disable_event_counter.

In any case armv8pmu_enable_event_counter is always called with the
PMU stopped. Starting the PMU with armv8pmu_start results in an isb
instruction being issued prior to writing to PMCR_EL0.

Let's remove the unnecessary isb instruction.

Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kernel/perf_event.c