summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-12-03 05:07:50 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-12-07 02:20:21 +0100
commite68fe18c5b5442baca162ccf3b273326e6132a51 (patch)
tree52ea4c7b4d9df60a2210de4d623e993f2ba4f9b9
parentcpufreq: ondemand: Update sampling rate only for concerned policies (diff)
downloadlinux-e68fe18c5b5442baca162ccf3b273326e6132a51.tar.xz
linux-e68fe18c5b5442baca162ccf3b273326e6132a51.zip
cpufreq: ondemand: Work is guaranteed to be pending
We are guaranteed to have works scheduled for policy->cpus, as the policy isn't stopped yet. And so there is no need to check that again. Drop it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/cpufreq/cpufreq_ondemand.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
index 089ca6a6ca02..08f2aa602f9e 100644
--- a/drivers/cpufreq/cpufreq_ondemand.c
+++ b/drivers/cpufreq/cpufreq_ondemand.c
@@ -286,9 +286,6 @@ static void update_sampling_rate(struct dbs_data *dbs_data,
if (dbs_data != policy->governor_data)
continue;
- if (!delayed_work_pending(&dbs_info->cdbs.dwork))
- continue;
-
next_sampling = jiffies + usecs_to_jiffies(new_rate);
appointed_at = dbs_info->cdbs.dwork.timer.expires;