]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: perf: allocate CPU PMU dynamically at probe time
authorSudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Tue, 31 Jul 2012 09:11:23 +0000 (10:11 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 23 Oct 2012 12:23:49 +0000 (13:23 +0100)
commit148a43da3dca5c65def7c50c731c1144036fdc10
tree5058d23c5392e4be5fe1ec55ad6ac632c5469ac0
parent703635d2d999f08ec73defe3c1456a69b540ab04
ARM: perf: allocate CPU PMU dynamically at probe time

Supporting multiple, heterogeneous CPU PMUs requires us to allocate the
arm_pmu structures dynamically as the devices are probed.

This patch removes the static structure definitions for each CPU PMU
type and instead passes pointers to the PMU-specific init functions.

Signed-off-by: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_cpu.c
arch/arm/kernel/perf_event_v6.c
arch/arm/kernel/perf_event_v7.c
arch/arm/kernel/perf_event_xscale.c