mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user