[PATCH v2 0/2] printk: Reduce unnecessary wait times by pr_flush()
From: Petr Mladek
Date: Fri Oct 06 2023 - 04:22:08 EST
This is an updated version of the patch
https://lore.kernel.org/r/20230929113233.863824-1-john.ogness@xxxxxxxxxxxxx
Changes since v1:
+ Split reduction of the pooling time into separate patch.
+ Use jiffies to count the real sleeping time.
Note that my original POC counted jiffies spent in the entire cycle.
It would count also the time spent by console_lock() and by flushing
the legacy consoles in console_unlock().
The current version counts only the time spent by msleep(1) aka
the pooling interval.
John Ogness (1):
printk: flush consoles before checking progress
Petr Mladek (1):
printk: Reduce pr_flush() pooling time
kernel/printk/printk.c | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
--
2.35.3