提交 e68fe18c 编写于 作者: V Viresh Kumar 提交者: Rafael J. Wysocki

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: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 e128c864
...@@ -286,9 +286,6 @@ static void update_sampling_rate(struct dbs_data *dbs_data, ...@@ -286,9 +286,6 @@ static void update_sampling_rate(struct dbs_data *dbs_data,
if (dbs_data != policy->governor_data) if (dbs_data != policy->governor_data)
continue; continue;
if (!delayed_work_pending(&dbs_info->cdbs.dwork))
continue;
next_sampling = jiffies + usecs_to_jiffies(new_rate); next_sampling = jiffies + usecs_to_jiffies(new_rate);
appointed_at = dbs_info->cdbs.dwork.timer.expires; appointed_at = dbs_info->cdbs.dwork.timer.expires;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册