ARM: perf: move platform device to struct arm_pmu
authorMark Rutland <mark.rutland@arm.com>
Wed, 4 May 2011 08:23:15 +0000 (09:23 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:50:04 +0000 (10:50 +0100)
commita9356a04fab912289b886824cb4b1d461987a910
tree786f8b29224b3039a856fd87765f3f116d84e500
parent03b7898d300de62078cc130fbc83b84b1d1e0f8d
ARM: perf: move platform device to struct arm_pmu

Currently the ARM perf code supports having a single struct
platform_device to supply IRQ numbers, limiting it to supporting a
single PMU.

This patch makes a platform_device instance variable on struct arm_pmu.
This should allow for multiple PMUs to be supported in future.

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