|
|
@@ -118,6 +118,7 @@ static void sugov_fast_switch(struct sugov_policy *sg_policy, u64 time,
|
|
|
unsigned int next_freq)
|
|
|
{
|
|
|
struct cpufreq_policy *policy = sg_policy->policy;
|
|
|
+ int cpu;
|
|
|
|
|
|
if (!sugov_update_next_freq(sg_policy, time, next_freq))
|
|
|
return;
|
|
|
@@ -127,7 +128,11 @@ static void sugov_fast_switch(struct sugov_policy *sg_policy, u64 time,
|
|
|
return;
|
|
|
|
|
|
policy->cur = next_freq;
|
|
|
- trace_cpu_frequency(next_freq, smp_processor_id());
|
|
|
+
|
|
|
+ if (trace_cpu_frequency_enabled()) {
|
|
|
+ for_each_cpu(cpu, policy->cpus)
|
|
|
+ trace_cpu_frequency(next_freq, cpu);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
static void sugov_deferred_update(struct sugov_policy *sg_policy, u64 time,
|