Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

John Ogness and committed by
Petr Mladek
1529bbb6 5f53ca3f

+12
+6
kernel/printk/nbcon.c
··· 1321 1321 1322 1322 con->kthread = kt; 1323 1323 1324 + /* 1325 + * It is important that console printing threads are scheduled 1326 + * shortly after a printk call and with generous runtime budgets. 1327 + */ 1328 + sched_set_normal(con->kthread, -20); 1329 + 1324 1330 return true; 1325 1331 } 1326 1332
+6
kernel/printk/printk.c
··· 3555 3555 3556 3556 printk_legacy_kthread = kt; 3557 3557 3558 + /* 3559 + * It is important that console printing threads are scheduled 3560 + * shortly after a printk call and with generous runtime budgets. 3561 + */ 3562 + sched_set_normal(printk_legacy_kthread, -20); 3563 + 3558 3564 return true; 3559 3565 } 3560 3566