rk29: pm: disable vt switch while suspend, one bug show suspend may hung on vt_event_wait
author黄涛 <huangtao@rock-chips.com>
Thu, 20 Oct 2011 03:11:10 +0000 (11:11 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 20 Oct 2011 03:30:33 +0000 (11:30 +0800)
arch/arm/mach-rk29/pm.c

index 4023154d9c917a0b1d8f6db405a946dc2e5072a1..a9314741a701a20fa654db14abc2bfab340b76c5 100755 (executable)
@@ -593,6 +593,10 @@ static int __init rk29_pm_init(void)
        pm_idle = rk29_idle;
        ddr_debug = 0;
 
+#ifdef CONFIG_EARLYSUSPEND
+       pm_set_vt_switch(0); /* disable vt switch while suspend */
+#endif
+
        return 0;
 }
 __initcall(rk29_pm_init);