diff options
author | Dirk Brandewie <dirk.brandewie@gmail.com> | 2013-02-06 12:02:09 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-09 06:55:47 -0500 |
commit | f6b0515b078f641d00ca531a9f0ae34f3b05ec20 (patch) | |
tree | e2ba8cb57e5f2510d6504f1ce047912bd3cb5064 /drivers/cpufreq/cpufreq.c | |
parent | 9e21ba8bd849251c8ba22ddf39308a5227134fdc (diff) |
cpufreq: Only call cpufreq_out_of_sync() for driver that implement cpufreq_driver.target()
Scaling drivers that implement cpufreq_driver.setpolicy() have
internal governors that do not signal changes via
cpufreq_notify_transition() so the frequncy in the policy will almost
certainly be different than the current frequncy. Only call
cpufreq_out_of_sync() when the underlying driver implements
cpufreq_driver.target()
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index e98035dc2265..480c49c71afe 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -1770,7 +1770,7 @@ int cpufreq_update_policy(unsigned int cpu) | |||
1770 | pr_debug("Driver did not initialize current freq"); | 1770 | pr_debug("Driver did not initialize current freq"); |
1771 | data->cur = policy.cur; | 1771 | data->cur = policy.cur; |
1772 | } else { | 1772 | } else { |
1773 | if (data->cur != policy.cur) | 1773 | if (data->cur != policy.cur && cpufreq_driver->target) |
1774 | cpufreq_out_of_sync(cpu, data->cur, | 1774 | cpufreq_out_of_sync(cpu, data->cur, |
1775 | policy.cur); | 1775 | policy.cur); |
1776 | } | 1776 | } |