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

Commit 714e43c8 authored by Kyle Yan's avatar Kyle Yan Committed by Jonathan Avila
Browse files

cpufreq: schedutil: Add cpu_frequency traces for each cpu in the policy



Add cpu_frequency traces for each online CPU in the policy for more
consistent outputs of most standard trace analysis tools.

Change-Id: I01cd48909316f861cb601c2ce74330351320f1b5
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
[avilaj@codeaurora.org: Port to 4.19, fix conflicts]
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
parent 6ac4cb1e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ static void sugov_fast_switch(struct sugov_policy *sg_policy, u64 time,
			      unsigned int next_freq)
{
	struct cpufreq_policy *policy = sg_policy->policy;
	unsigned int cpu;

	if (!sugov_update_next_freq(sg_policy, time, next_freq))
		return;
@@ -178,6 +179,7 @@ static void sugov_fast_switch(struct sugov_policy *sg_policy, u64 time,
		return;

	policy->cur = next_freq;
	for_each_cpu(cpu, policy->cpus)
		trace_cpu_frequency(next_freq, smp_processor_id());
}