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)
commitb916b785af99088916a122cb37de1bda3fa7f70e
tree8dc2eae29a78d9df2d0da6ca3402795a6c6e2a67
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
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