]> git.baikalelectronics.ru Git - kernel.git/commit
arm: perf: krait: stop using singleton PMU
authorMark Rutland <mark.rutland@arm.com>
Wed, 21 May 2014 17:06:13 +0000 (18:06 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 2 Jul 2014 14:48:26 +0000 (15:48 +0100)
commit4ae9edf435480771f2c2cc1c63162ac7a5b5b7b8
tree651d0110f848459c8fb8610cf32468cbff9059b6
parent0f3bd834f38542276ff5ebaa519931f79c6143df
arm: perf: krait: stop using singleton PMU

Currently the krait_pmu_{enable,disable}_event functions use the global
cpu_pmu variable while all the other pmu enable/disable functions
derive this from the event argument.

This patch brings the Krait functions into line with the rest of the PMU
backends by deriving the address of the pmu from the event argument.

Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_v7.c