File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1321,6 +1321,12 @@ bool nbcon_kthread_create(struct console *con)
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
Original file line number Diff line number Diff line change @@ -3555,6 +3555,12 @@ static bool legacy_kthread_create(void)
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
You can’t perform that action at this time.
0 commit comments