diff options
author | Mark Rutland <mark.rutland@arm.com> | 2015-10-28 12:32:17 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-11-16 15:41:49 +0000 |
commit | b916b785af99088916a122cb37de1bda3fa7f70e (patch) | |
tree | 8dc2eae29a78d9df2d0da6ca3402795a6c6e2a67 /include/linux/perf | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
download | linux-b916b785af99088916a122cb37de1bda3fa7f70e.tar.gz linux-b916b785af99088916a122cb37de1bda3fa7f70e.tar.bz2 linux-b916b785af99088916a122cb37de1bda3fa7f70e.zip |
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>
Diffstat (limited to 'include/linux/perf')
-rw-r--r-- | include/linux/perf/arm_pmu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/perf/arm_pmu.h b/include/linux/perf/arm_pmu.h index bfa673bb822d..83b5e34c6580 100644 --- a/include/linux/perf/arm_pmu.h +++ b/include/linux/perf/arm_pmu.h @@ -111,8 +111,6 @@ struct arm_pmu { #define to_arm_pmu(p) (container_of(p, struct arm_pmu, pmu)) -int armpmu_register(struct arm_pmu *armpmu, int type); - u64 armpmu_event_update(struct perf_event *event); int armpmu_event_set_period(struct perf_event *event); |