mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2026-01-27 12:47:24 +01:00
printk: Check CON_SUSPEND when unblanking a console
[ Upstream commit72c96a2dac] The commit9e70a5e109("printk: Add per-console suspended state") introduced the CON_SUSPENDED flag for consoles. The suspended consoles will stop receiving messages, so don't unblank suspended consoles because it won't be showing anything either way. Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: John Ogness <john.ogness@linutronix.de> Link: https://lore.kernel.org/r/20250226-printk-renaming-v1-5-0b878577f2e6@suse.com Signed-off-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8a7f2e84f8
commit
386a1a0d55
|
|
@ -3119,7 +3119,12 @@ void console_unblank(void)
|
|||
*/
|
||||
cookie = console_srcu_read_lock();
|
||||
for_each_console_srcu(c) {
|
||||
if ((console_srcu_read_flags(c) & CON_ENABLED) && c->unblank) {
|
||||
short flags = console_srcu_read_flags(c);
|
||||
|
||||
if (flags & CON_SUSPENDED)
|
||||
continue;
|
||||
|
||||
if ((flags & CON_ENABLED) && c->unblank) {
|
||||
found_unblank = true;
|
||||
break;
|
||||
}
|
||||
|
|
@ -3156,7 +3161,12 @@ void console_unblank(void)
|
|||
|
||||
cookie = console_srcu_read_lock();
|
||||
for_each_console_srcu(c) {
|
||||
if ((console_srcu_read_flags(c) & CON_ENABLED) && c->unblank)
|
||||
short flags = console_srcu_read_flags(c);
|
||||
|
||||
if (flags & CON_SUSPENDED)
|
||||
continue;
|
||||
|
||||
if ((flags & CON_ENABLED) && c->unblank)
|
||||
c->unblank();
|
||||
}
|
||||
console_srcu_read_unlock(cookie);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user