mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
rk_serial: 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: I6b9edfc60a96202b356d0fe519073ea4665ae32a Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
1919e3d736
commit
3735237f41
|
|
@ -1852,7 +1852,7 @@ static int __init serial_rk_console_setup(struct console *co, char *options)
|
|||
|
||||
#ifdef CONFIG_RK_CONSOLE_THREAD
|
||||
if (!console_task) {
|
||||
console_task = kthread_create(console_thread, up, "kconsole");
|
||||
console_task = kthread_run(console_thread, up, "kconsole");
|
||||
if (!IS_ERR(console_task))
|
||||
co->write = console_write;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user