]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: perf: probe devicetree in preference to current CPU
authorWill Deacon <will.deacon@arm.com>
Sat, 28 Jul 2012 16:42:22 +0000 (17:42 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 23 Aug 2012 10:35:52 +0000 (11:35 +0100)
commitdca2a277e5e0b54a3974fd97afa5f9c79a2c01b2
treefef6161a18a418db56cb3acb6cae263c3af1f436
parent63ade7770a4e839c383d3b8a6116ced92a65550b
ARM: perf: probe devicetree in preference to current CPU

The CPU PMU is probed using the current cpuid information as part of the
early_initcall initialising the architecture perf backend. For
architectures without NMI (such as ARM), this does not need to be
performed early and can be deferred to the driver probe callback. This
also allows us to probe the devicetree in preference to parsing the
current cpuid, which may be invalid on a big.LITTLE multi-cluster
system.

This patch defers the PMU probing and uses the devicetree information
when available.

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