Re: [PATCH 4/7] sparc64: Update cpufreq transition notifier to handle multiple CPUs

From: David Miller
Date: Thu Mar 14 2019 - 13:27:24 EST


From: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
Date: Thu, 14 Mar 2019 12:12:50 +0530

> The cpufreq core currently calls the cpufreq transition notifier
> callback once for each affected CPU. This is going to change soon and
> the cpufreq core will call the callback only once for each cpufreq
> policy. The callback must look at the newly added field in struct
> cpufreq_freqs, "cpus", which contains policy->related_cpus (both
> online/offline CPUs) and perform per-cpu actions for them if any.
>
> This patch updates sparc64_cpufreq_notifier() to use the new "cpus" field
> and update per-cpu data for all the related CPUs.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>