rk29: pm: add flush_tlb_all
author黄涛 <huangtao@rock-chips.com>
Mon, 28 Feb 2011 09:26:27 +0000 (17:26 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 28 Feb 2011 09:26:49 +0000 (17:26 +0800)
arch/arm/mach-rk29/pm.c

index 0702e7ddf65c7be09d9f46aced6f3fcf72d36189..de461ecfedc91a26e80e945be0c110bf002e9f2e 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/regulator/rk29-pwm-regulator.h>
 #include <linux/io.h>
 #include <linux/wakelock.h>
+#include <asm/tlbflush.h>
 
 #include <mach/rk29_iomap.h>
 #include <mach/cru.h>
@@ -172,6 +173,7 @@ static int rk29_pm_enter(suspend_state_t state)
 
 #ifdef CONFIG_RK29_PWM_REGULATOR
        /* touch TLB */
+       flush_tlb_all();
        readl(RK29_PWM_BASE);
        readl(RK29_GRF_BASE);
 #endif