cpufreq: schedutil: Remove useless tracing

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
This commit is contained in:
Yaroslav Furman 2020-11-21 19:12:42 +03:00 committed by Adithya R
parent 54caffe3bd
commit cc224d6daa

View File

@ -228,7 +228,6 @@ static void sugov_update_commit(struct sugov_policy *sg_policy, u64 time,
unsigned int next_freq)
{
struct cpufreq_policy *policy = sg_policy->policy;
unsigned int cpu;
if (sg_policy->next_freq == next_freq)
return;
@ -249,9 +248,6 @@ static void sugov_update_commit(struct sugov_policy *sg_policy, u64 time,
return;
policy->cur = next_freq;
for_each_cpu(cpu, policy->cpus) {
trace_cpu_frequency(next_freq, cpu);
}
} else {
if (use_pelt())
sg_policy->work_in_progress = true;
@ -290,7 +286,6 @@ static unsigned int get_next_freq(struct sugov_policy *sg_policy,
policy->cpuinfo.max_freq : policy->cur;
freq = (freq + (freq >> 2)) * util / max;
trace_sugov_next_freq(policy->cpu, util, max, freq);
if (freq == sg_policy->cached_raw_freq && !sg_policy->need_freq_update)
return sg_policy->next_freq;
@ -1183,7 +1178,6 @@ static void sugov_limits(struct cpufreq_policy *policy)
struct sugov_policy *sg_policy = policy->governor_data;
unsigned long flags;
unsigned int ret;
int cpu;
if (!policy->fast_switch_enabled) {
mutex_lock(&sg_policy->work_lock);
@ -1200,8 +1194,6 @@ static void sugov_limits(struct cpufreq_policy *policy)
ret = cpufreq_policy_apply_limits_fast(policy);
if (ret && policy->cur != ret) {
policy->cur = ret;
for_each_cpu(cpu, policy->cpus)
trace_cpu_frequency(ret, cpu);
}
raw_spin_unlock_irqrestore(&sg_policy->update_lock, flags);
}