From: 黄涛 <huangtao@rock-chips.com> Date: Thu, 20 Oct 2011 03:11:10 +0000 (+0800) Subject: rk29: pm: disable vt switch while suspend, one bug show suspend may hung on vt_event_wait X-Git-Tag: firefly_0821_release~9766^2~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bd76a05e28de963c784c3aa58f056ccad367ab94;p=firefly-linux-kernel-4.4.55.git rk29: pm: disable vt switch while suspend, one bug show suspend may hung on vt_event_wait --- diff --git a/arch/arm/mach-rk29/pm.c b/arch/arm/mach-rk29/pm.c index 4023154d9c91..a9314741a701 100755 --- a/arch/arm/mach-rk29/pm.c +++ b/arch/arm/mach-rk29/pm.c @@ -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);