From 4eef96a320a80038a761410c66cb138bddf71a70 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Mon, 20 Nov 2017 16:17:38 +0800 Subject: [PATCH] rk_fiq_debugger: use kthread_run Use kthread_run instead of kthread_create when create kconsole thread. We should call wake_up_process after kthread_create, otherwise kconsole will keep in TASK_UNINTERRUPTIBLE state when loglevel=0. Then kconsole will become hung task, and will trigger hung task timeout. Change-Id: I440f6bed4ace755d51d6a91600735aaa7ee5925d Signed-off-by: Tao Huang --- drivers/soc/rockchip/rk_fiq_debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/rockchip/rk_fiq_debugger.c b/drivers/soc/rockchip/rk_fiq_debugger.c index 06b35468a1eb..09c4db479a68 100755 --- a/drivers/soc/rockchip/rk_fiq_debugger.c +++ b/drivers/soc/rockchip/rk_fiq_debugger.c @@ -516,7 +516,7 @@ void rk_serial_debug_init(void __iomem *base, phys_addr_t phy_base, } #ifdef CONFIG_RK_CONSOLE_THREAD - t->console_task = kthread_create(console_thread, pdev, "kconsole"); + t->console_task = kthread_run(console_thread, pdev, "kconsole"); if (!IS_ERR(t->console_task)) t->pdata.console_write = console_write; #endif