mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
printk: nbcon: Assign nice -20 for printing threads
It is important that console printing threads are scheduled shortly after a printk call and with generous runtime budgets. Signed-off-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20240904120536.115780-17-john.ogness@linutronix.de Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
parent
5f53ca3ff8
commit
1529bbb6e2
@ -1321,6 +1321,12 @@ bool nbcon_kthread_create(struct console *con)
|
||||
|
||||
con->kthread = kt;
|
||||
|
||||
/*
|
||||
* It is important that console printing threads are scheduled
|
||||
* shortly after a printk call and with generous runtime budgets.
|
||||
*/
|
||||
sched_set_normal(con->kthread, -20);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3555,6 +3555,12 @@ static bool legacy_kthread_create(void)
|
||||
|
||||
printk_legacy_kthread = kt;
|
||||
|
||||
/*
|
||||
* It is important that console printing threads are scheduled
|
||||
* shortly after a printk call and with generous runtime budgets.
|
||||
*/
|
||||
sched_set_normal(printk_legacy_kthread, -20);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user