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

2019-02-10 Thread Thomas Gleixner
On Mon, 4 Feb 2019, Robin Murphy wrote: > /* Pick one CPU which we will use to collect data from CCN... */ > - cpumask_set_cpu(get_cpu(), &ccn->dt.cpu); > + cpus_read_lock(); > + ccn->dt.cpu = smp_processor_id(); Again raw_smp_processor_id() Thanks, tglx

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

2019-02-05 Thread Suzuki K Poulose
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 in

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

2019-02-04 Thread Robin Murphy
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 associ