aboutsummaryrefslogtreecommitdiff
path: root/include/linux/perf
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2016-07-20 09:51:11 +0200
committerIngo Molnar <[email protected]>2016-07-20 09:57:34 +0200
commit37b502f121adab26ccc2769c3063f0e1272be7de (patch)
tree68e8d160f3344282a5b7d64737b9fed3f5435b75 /include/linux/perf
parentc76c15e6f16c1529b524ba2c519c4fcef7a45e16 (diff)
arm/perf: Fix hotplug state machine conversion
Mark Rutland pointed out that this commit is incomplete: 7d88eb695a1f ("arm/perf: Convert to hotplug state machine") The problem is that: > We may have multiple PMUs (e.g. two in big.LITTLE systems), and > __oprofile_cpu_pmu only contains one of these. So this conversion is not > correct. > > We were relying on the notifier list implicitly containing a list of > those PMUs. It seems like we need an explicit list here. > > We keep __oprofile_cpu_pmu around for legacy 32-bit users of OProfile > (on non-hetereogeneous systems), and that's all that the variable should > be used for. Introduce arm_pmu_list to correctly handle multiple PMUs in the system. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Acked-by: Mark Rutland <[email protected]> Cc: Anna-Maria Gleixner <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/perf')
-rw-r--r--include/linux/perf/arm_pmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf/arm_pmu.h b/include/linux/perf/arm_pmu.h
index e6ed34eb2b2b..e18843809eec 100644
--- a/include/linux/perf/arm_pmu.h
+++ b/include/linux/perf/arm_pmu.h
@@ -109,6 +109,7 @@ struct arm_pmu {
DECLARE_BITMAP(pmceid_bitmap, ARMV8_PMUV3_MAX_COMMON_EVENTS);
struct platform_device *plat_device;
struct pmu_hw_events __percpu *hw_events;
+ struct list_head entry;
struct notifier_block cpu_pm_nb;
};