diff options
author | Octav Zlatior <octav.zlatior@theobroma-systems.com> | 2015-06-08 15:53:11 +0200 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2015-07-30 18:53:02 +0200 |
commit | 52d098616088c46f7b9a23c8f55502bd93bc94ec (patch) | |
tree | 277ed287ed98528cc8255fd814b227fa9003b131 | |
parent | 726941494fa59b0a106d21fcad6770bb0ed79f66 (diff) |
cpufreq: use transition mode during transitions
A call to the clk_use_transition_mode is issued on transition begin.
Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 8ae655c364f4..e1cc2b6f298d 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -17,6 +17,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#include <linux/clk.h> #include <linux/cpu.h> #include <linux/cpufreq.h> #include <linux/delay.h> @@ -356,7 +357,6 @@ static void cpufreq_notify_post_transition(struct cpufreq_policy *policy, void cpufreq_freq_transition_begin(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs) { - /* * Catch double invocations of _begin() which lead to self-deadlock. * ASYNC_NOTIFICATION drivers are left out because the cpufreq core @@ -378,6 +378,8 @@ wait: goto wait; } + clk_use_transition_mode(policy->clk); + policy->transition_ongoing = true; policy->transition_task = current; |