move clk_set_rate out of irq disabled
authoryangkai <yangkai@ubuntu-fs>
Thu, 21 Jul 2011 11:56:02 +0000 (19:56 +0800)
committeryangkai <yangkai@ubuntu-fs>
Thu, 21 Jul 2011 11:56:02 +0000 (19:56 +0800)
arch/arm/mach-rk29/ddr.c

index 6c7f1d47015e4335827e8373095db9b9d0a81d71..3bd26953b9686900e8b6b44fb0894101562b74a9 100755 (executable)
@@ -1226,9 +1226,9 @@ uint32_t __sramfunc ddr_change_freq(uint32_t nMHz)
     /** 5. Issues a Mode Exit command   */
     ddr_selfrefresh_exit();
        dsb(); 
-    clk_set_rate(clk_get(NULL, "ddr_pll"), 0);
     DDR_RESTORE_SP(save_sp);
     local_irq_restore(flags);
+    clk_set_rate(clk_get(NULL, "ddr_pll"), 0);
     return ret;
 }
 EXPORT_SYMBOL(ddr_change_freq);