cpufreq: ondemand: Work is guaranteed to be pending
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Dec 2015 04:07:50 +0000 (09:37 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Dec 2015 01:20:21 +0000 (02:20 +0100)
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>
drivers/cpufreq/cpufreq_ondemand.c

index 089ca6a6ca02b3f998b75f742f0c20ff2406ad9c..08f2aa602f9ec98f645a6eebf21e4af3b5b9e726 100644 (file)
@@ -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;