]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: Notify cpufreq with actual set rate
authorSai Gurrappadi <sgurrappadi@nvidia.com>
Thu, 7 Aug 2014 22:24:02 +0000 (15:24 -0700)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Thu, 28 Aug 2014 00:48:15 +0000 (17:48 -0700)
Notify the cpufreq framework layer with the actual clock rate rather
than assuming the rate requested is the rate set. This could potentially
happen if the rate requested doesn't match the rate output by CL-DVFS
due to the granularity it supports.

Not doing so could potentially ruin the state of some cpufreq governors
due to the feedback loop.

Bug 1536224

Change-Id: I6d61b45689b9ae2c492d117b720f6dd106b300c2
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/454162
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
arch/arm/mach-tegra/cpu-tegra.c

index b381f46fc649f680eb0f9c0f5c14203bd7cc87a7..ce1377ab9e21819630394cac83cc17f12a9449b4 100644 (file)
@@ -688,6 +688,8 @@ int tegra_update_cpu_speed(unsigned long rate)
                return ret;
        }
 
+       freqs.new = tegra_getspeed(0);
+
        for_each_online_cpu(freqs.cpu)
                cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);