Commit 8ee2ec51 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Rafael J. Wysocki

cpufreq: ondemand: use all CPUs in update_sampling_rate

Modify update_sampling_rate() to check, and eventually immediately
schedule, all CPU's do_dbs_timer delayed work.

This is required in case of software coordinated CPUs, as we now have a
separate delayed work for each CPU.
Signed-off-by: default avatarFabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 66df2a01
...@@ -326,7 +326,7 @@ static void update_sampling_rate(unsigned int new_rate) ...@@ -326,7 +326,7 @@ static void update_sampling_rate(unsigned int new_rate)
cpufreq_cpu_put(policy); cpufreq_cpu_put(policy);
continue; continue;
} }
dbs_info = &per_cpu(od_cpu_dbs_info, policy->cpu); dbs_info = &per_cpu(od_cpu_dbs_info, cpu);
cpufreq_cpu_put(policy); cpufreq_cpu_put(policy);
mutex_lock(&dbs_info->cdbs.timer_mutex); mutex_lock(&dbs_info->cdbs.timer_mutex);
...@@ -345,8 +345,7 @@ static void update_sampling_rate(unsigned int new_rate) ...@@ -345,8 +345,7 @@ static void update_sampling_rate(unsigned int new_rate)
cancel_delayed_work_sync(&dbs_info->cdbs.work); cancel_delayed_work_sync(&dbs_info->cdbs.work);
mutex_lock(&dbs_info->cdbs.timer_mutex); mutex_lock(&dbs_info->cdbs.timer_mutex);
schedule_delayed_work_on(dbs_info->cdbs.cpu, schedule_delayed_work_on(cpu, &dbs_info->cdbs.work,
&dbs_info->cdbs.work,
usecs_to_jiffies(new_rate)); usecs_to_jiffies(new_rate));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment