diff options
author | Jinyoung Park <jinyoungp@nvidia.com> | 2013-10-30 19:34:03 +0900 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-10-30 09:27:21 -0700 |
commit | 665c49bfcf55cdce2987b9e7abe4c2f1eb1207e3 (patch) | |
tree | b12de07389bd18913e81bef9194c78115b879969 /drivers/cpufreq/cpufreq_interactive.c | |
parent | a55b5a070aabecd0e8550599713c70d6d9844ea6 (diff) |
cpufreq: interactive: check freq with policy->curdaily-2013.11.05.1_rel-tegranote-r2-partner
Added check for new target freq with policy->cur before request new
target freq.
This change is derived from http://git-master/r/#/c/298964/ for
stability issues.
Bug 1397658.
Change-Id: Id263e2c9988873e41ebe95dfcf52dab9d24ddcad
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/309571
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_interactive.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_interactive.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index 9369e888b5d9..e1abd8f0a463 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -499,9 +499,10 @@ static int cpufreq_interactive_speedchange_task(void *data) max_freq = pjcpu->target_freq; } - __cpufreq_driver_target(pcpu->policy, - max_freq, - CPUFREQ_RELATION_H); + if (max_freq != pcpu->policy->cur) + __cpufreq_driver_target(pcpu->policy, + max_freq, + CPUFREQ_RELATION_H); pcpu->freq_change_time_in_idle = get_cpu_idle_time_us(cpu, |