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 <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2017-11-20 16:17:38 +08:00
parent 3735237f41
commit 4eef96a320

View File

@@ -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