From cc224d6daad8cdf3c740af4c857ec4811854d8e8 Mon Sep 17 00:00:00 2001 From: Yaroslav Furman Date: Sat, 21 Nov 2020 19:12:42 +0300 Subject: [PATCH] cpufreq: schedutil: Remove useless tracing Signed-off-by: Yaroslav Furman Signed-off-by: Adithya R --- kernel/sched/cpufreq_schedutil.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 1aca639bda40..4ea7c4946c3c 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -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); }