From: Mark Rutland Date: Thu, 23 Oct 2014 14:23:35 +0000 (+0100) Subject: arm: perf: fold hotplug notifier into arm_pmu X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~13^2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af66abfe2ec8bd82211e9e4f036a64c902ff4cdb;p=pandora-kernel.git 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 Reviewed-by: Stephen Boyd Signed-off-by: Will Deacon --- Reading git-diff-tree failed