Mark Rutland pointed out that this commit is incomplete:
7d88eb69 ("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
> 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 <firstname.lastname@example.org>
Acked-by: Mark Rutland <email@example.com>
Cc: Anna-Maria Gleixner <firstname.lastname@example.org>
Cc: Linus Torvalds <email@example.com>
Cc: Peter Zijlstra <firstname.lastname@example.org>
Cc: Thomas Gleixner <email@example.com>
Cc: Will Deacon <firstname.lastname@example.org>
Link: http://lkml.kernel.org/r/20160719111733.GA22911@linutronix.deSigned-off-by: Ingo Molnar <email@example.com>