mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
e128c86407
commit
e68fe18c5b
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue