OSDN Git Service

arm: perf: factor out xscale pmu driver
authorMark Rutland <mark.rutland@arm.com>
Tue, 26 May 2015 16:23:36 +0000 (17:23 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 28 May 2015 15:54:09 +0000 (16:54 +0100)
commita12c72cc3e6938191cabeefff44b959a823d3d76
tree58383938b19be3105e54987e718958c16c04d475
parentcfdad2991f7addb1bc0ce3361a5ee980a0482a87
arm: perf: factor out xscale pmu driver

Now that the core arm perf code maintains no global state and all
microarchitecture-specific PMU data can be fed in through the shared
probe function, it's possible to use it as a library and get rid of the
C file includes we have currently.

This patch factors out the xscale-specific portions out into the xscale
driver. For the moment this is always built if perf event support is
enabled, but the preprocessor guards will leave behind an empty file.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/Makefile
arch/arm/kernel/perf_event_cpu.c
arch/arm/kernel/perf_event_xscale.c