tlk: 6/19 update
[3rdparty/ote_partner/tlk.git] / platform / tegra / common / pm.c
index c164b92..beedc01 100644 (file)
@@ -254,8 +254,8 @@ static void pm_handle_lp0_suspend_smc(struct tz_monitor_frame *frame)
 
        platform_disable_debug_intf();
 
-       /* flush dcache last */
-       flush_dcache_all();
+       /* flush/disable dcache last */
+       arch_disable_cache(DCACHE);
 }
 
 static void pm_handle_lp1_suspend_smc(struct tz_monitor_frame *frame)
@@ -284,8 +284,8 @@ static void pm_handle_lp1_suspend_smc(struct tz_monitor_frame *frame)
                load_tzram_lp1_resume_handler = false;
        }
 
-       /* flush dcache last */
-       flush_dcache_all();
+       /* flush/disable dcache last */
+       arch_disable_cache(DCACHE);
 }
 
 static void pm_handle_lp2_suspend_smc(struct tz_monitor_frame *frame)
@@ -298,8 +298,8 @@ static void pm_handle_lp2_suspend_smc(struct tz_monitor_frame *frame)
        /* save off current state */
        cpu_save_context();
 
-       /* flush dcache last */
-       flush_dcache_all();
+       /* flush/disable dcache last */
+       arch_disable_cache(DCACHE);
 }
 
 /*