diff options
author | John Ogness <john.ogness@linutronix.de> | 2022-04-21 23:22:46 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2022-04-22 21:30:58 +0200 |
commit | 3b604ca81202eea2a917eb6491e90f610fba0ec7 (patch) | |
tree | 553f119d8bed892bed778c99e11faaaadf119cd6 /kernel/reboot.c | |
parent | printk: move buffer definitions into console_emit_next_record() caller (diff) | |
download | linux-3b604ca81202eea2a917eb6491e90f610fba0ec7.tar.xz linux-3b604ca81202eea2a917eb6491e90f610fba0ec7.zip |
printk: add pr_flush()
Provide a might-sleep function to allow waiting for console printers
to catch up to the latest logged message.
Use pr_flush() whenever it is desirable to get buffered messages
printed before continuing: suspend_console(), resume_console(),
console_stop(), console_start(), console_unblank().
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220421212250.565456-12-john.ogness@linutronix.de
Diffstat (limited to 'kernel/reboot.c')
0 files changed, 0 insertions, 0 deletions