ARM: tegra: dvfs: Account for GPU rail suspend time
Alex Frid [Wed, 11 Sep 2013 01:32:23 +0000 (18:32 -0700)]
Change-Id: Icefd90ebe4ae5bcad89e3a61b1c2fc69cded90b5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/272874
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

arch/arm/mach-tegra/dvfs.c
arch/arm/mach-tegra/dvfs.h
arch/arm/mach-tegra/pm.c

index 791e2fb..dfb7c1e 100644 (file)
@@ -44,7 +44,7 @@
 
 struct dvfs_rail *tegra_cpu_rail;
 struct dvfs_rail *tegra_core_rail;
-static struct dvfs_rail *tegra_gpu_rail;
+struct dvfs_rail *tegra_gpu_rail;
 
 static LIST_HEAD(dvfs_rail_list);
 static DEFINE_MUTEX(dvfs_lock);
index 7bac2ae..aafc6c8 100644 (file)
@@ -187,6 +187,7 @@ struct cvb_dvfs {
 #define core_cvb_dvfs  cvb_dvfs
 
 extern struct dvfs_rail *tegra_cpu_rail;
+extern struct dvfs_rail *tegra_gpu_rail;
 extern struct dvfs_rail *tegra_core_rail;
 
 struct dvfs_data {
index 786d74c..c019230 100644 (file)
@@ -1158,6 +1158,7 @@ static int tegra_suspend_enter(suspend_state_t state)
                delta = timespec_to_ktime(timespec_sub(ts_exit, ts_entry));
 
                tegra_dvfs_rail_pause(tegra_cpu_rail, delta, false);
+               tegra_dvfs_rail_pause(tegra_gpu_rail, delta, false);
                if (current_suspend_mode == TEGRA_SUSPEND_LP0)
                        tegra_dvfs_rail_pause(tegra_core_rail, delta, false);
                else