diff options
author | Marcos Paulo de Souza <mpdesouza@suse.com> | 2024-11-05 20:45:08 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2024-11-11 12:53:31 +0100 |
commit | ed76c07c6885b249ce8486dac22fb97151a83185 (patch) | |
tree | 561f88a4019769122c588316516f0dc1172313dc /drivers/tty | |
parent | Merge tag 'printk-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
download | linux-ed76c07c6885b249ce8486dac22fb97151a83185.tar.xz linux-ed76c07c6885b249ce8486dac22fb97151a83185.zip |
printk: Introduce FORCE_CON flag
Introduce FORCE_CON flag to printk. The new flag will make it possible to
create a context where printk messages will never be suppressed.
This mechanism will be used in the next patch to create a force_con
context on sysrq handling, removing an existing workaround on the
loglevel global variable. The workaround existed to make sure that sysrq
header messages were sent to all consoles, but this doesn't work with
deferred messages because the loglevel might be restored to its original
value before a console flushes the messages.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20241105-printk-loud-con-v2-1-bd3ecdf7b0e4@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'drivers/tty')
0 files changed, 0 insertions, 0 deletions