Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8efd072b authored by Vincent Guittot's avatar Vincent Guittot Committed by Dave Jones
Browse files

[CPUFREQ] ARM: ux500: send cpufreq notification for all cpus



The same clock is used for all cpus so we must notify the frequency change
for each one in order to update the configuration of all twd clockevents.

change since V1:
* use policy->cpus instead of cpu_online_mask

Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 826e570b
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -72,12 +72,12 @@ static int db8500_cpufreq_target(struct cpufreq_policy *policy,


	freqs.old = policy->cur;
	freqs.old = policy->cur;
	freqs.new = freq_table[idx].frequency;
	freqs.new = freq_table[idx].frequency;
	freqs.cpu = policy->cpu;


	if (freqs.old == freqs.new)
	if (freqs.old == freqs.new)
		return 0;
		return 0;


	/* pre-change notification */
	/* pre-change notification */
	for_each_cpu(freqs.cpu, policy->cpus)
		cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
		cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);


	/* request the PRCM unit for opp change */
	/* request the PRCM unit for opp change */
@@ -87,6 +87,7 @@ static int db8500_cpufreq_target(struct cpufreq_policy *policy,
	}
	}


	/* post change notification */
	/* post change notification */
	for_each_cpu(freqs.cpu, policy->cpus)
		cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
		cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);


	return 0;
	return 0;