diff options
author | Mark Rutland <mark.rutland@arm.com> | 2014-10-23 14:23:35 (GMT) |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-10-30 12:17:01 (GMT) |
commit | af66abfe2ec8bd82211e9e4f036a64c902ff4cdb (patch) | |
tree | 6240919ba10cc0f2dedfc7ac57d465cbd7174f08 /drivers/bus | |
parent | abdf655a30b6464fe86c8369de60ccf92f73f589 (diff) | |
download | linux-af66abfe2ec8bd82211e9e4f036a64c902ff4cdb.tar.xz |
arm: perf: fold hotplug notifier into arm_pmu
Handling multiple PMUs using a single hotplug notifier requires a list
of PMUs to be maintained, with synchronisation in the probe, remove, and
notify paths. This is error-prone and makes the code much harder to
maintain.
Instead of using a single notifier, we can dynamically allocate a
notifier block per-PMU. The end result is the same, but the list of PMUs
is implicit in the hotplug notifier list rather than within a perf-local
data structure, which makes the code far easier to handle.
Signed-off-by: Mark Rutland <mark.rutland at arm.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions