ARM: perf: move active_events into struct arm_pmu
authorMark Rutland <mark.rutland@arm.com>
Wed, 27 Apr 2011 10:20:11 +0000 (11:20 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:50:03 +0000 (10:50 +0100)
commit03b7898d300de62078cc130fbc83b84b1d1e0f8d
treed0956ed5223569c138f1222d3b8897282c1536c7
parentc47f8684baefa2bf52c4320f894e73db08dc8a0a
ARM: perf: move active_events into struct arm_pmu

This patch moves the active_events counter into struct arm_pmu, in
preparation for supporting multiple PMUs. This also moves
pmu_reserve_mutex, as it is used to guard accesses to active_events.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event.c