Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e68fe18c authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e128c864
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;