Commit 1529bbb6 authored by John Ogness's avatar John Ogness Committed by Petr Mladek
Browse files

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: default avatarJohn Ogness <john.ogness@linutronix.de>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240904120536.115780-17-john.ogness@linutronix.de


Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent 5f53ca3f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
}

+6 −0
Original line number Diff line number Diff line
@@ -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;
}