Re: [PATCH 3/5] perf/arm-ccn: Fix CPU hotplug race avoidance

From: Suzuki K Poulose
Date: Tue Feb 05 2019 - 06:38:16 EST

On 04/02/2019 17:09, Robin Murphy wrote:
Like arm-cci, arm-ccn has the same issue where disabling preemption to
avoid races between registering the PMU device and the hotplug notifier
can lead to those operations taking mutexes in an invalid context. Fix
it the same way by disabling hotplug instead of preemption. Since we
only ever associate the PMU instance with a single CPU, we can also take
the opportunity to slightly simplify the hotplug handling to track just
that CPU number instead of a full cpumask.

Signed-off-by: Robin Murphy <robin.murphy@xxxxxxx>

Reviewed-by: Suzuki K Poulse <suzuki.poulose@xxxxxxx>