]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: kill armpmu_register
authorMark Rutland <mark.rutland@arm.com>
Wed, 28 Oct 2015 12:32:17 +0000 (12:32 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 16 Nov 2015 15:41:49 +0000 (15:41 +0000)
commit4806da5eea5a79c5e25b0b90abfc9192315088fe
tree8dc2eae29a78d9df2d0da6ca3402795a6c6e2a67
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
drivers/perf: kill armpmu_register

Nothing outside of drivers/perf/arm_pmu.c should call armpmu_register
any more, so it no longer needs to be in include/linux/perf/arm_pmu.h.
Additionally, by folding it in to arm_pmu_device_probe we can allow
drivers to override struct pmu fields without getting blatted by the
armpmu code.

This patch folds armpmu_register into arm_pmu_device_probe. The logging
to the console is moved to after the PMU is successfully registered with
the core perf code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Suggested-by: Will Deacon <will.deacon@arm.com>
Cc: Drew Richardson <drew.richardson@arm.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c
include/linux/perf/arm_pmu.h