]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: arm_pmu: factor out pmu registration
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:47 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commit3f53d873ce58461be99dbcddf7e5db2d264b1eb1
tree8ef66058c3066d15c9aac3b74cdab6234647896a
parent50b6bd8f38329cee74b8bb49ae1f7367e24d89c3
drivers/perf: arm_pmu: factor out pmu registration

Currently arm_pmu_device_probe contains probing logic specific to the
platform_device infrastructure, and some logic required to safely
register the PMU with various systems.

This patch factors out the logic relating to the registration of the
PMU. This makes arm_pmu_device_probe a little easier to read, and will
make it easier to reuse the logic for an ACPI-specific probing
mechanism.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c