ARM: tegra: suspend: use clk_get_rate_all_locked
authorColin Cross <ccross@android.com>
Tue, 2 Nov 2010 00:30:33 +0000 (17:30 -0700)
committerColin Cross <ccross@android.com>
Thu, 4 Nov 2010 00:55:54 +0000 (17:55 -0700)
Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I2d4bfd8728998903f9cff4a0f1ab41e76bdc02d7

arch/arm/mach-tegra/suspend.c

index 0d9898de0c4bc66deb817e2fc72888c52acc8ae7..8c7d0a9ffe93f02b67a73e808e7005899242d2a5 100644 (file)
@@ -46,6 +46,7 @@
 #include <asm/pgalloc.h>
 #include <asm/tlbflush.h>
 
+#include <mach/clk.h>
 #include <mach/iomap.h>
 #include <mach/iovmm.h>
 #include <mach/irqs.h>
@@ -358,7 +359,7 @@ unsigned int tegra_suspend_lp2(unsigned int us)
        writel(virt_to_phys(tegra_lp2_startup), evp_reset);
 
        set_power_timers(pdata->cpu_timer, pdata->cpu_off_timer,
-                        clk_get_rate(tegra_pclk));
+                        clk_get_rate_all_locked(tegra_pclk));
 
        if (us)
                tegra_lp2_set_trigger(us);