diff options
author | John Ogness <[email protected]> | 2023-07-17 21:52:06 +0206 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2023-07-20 13:06:22 +0200 |
commit | 9e70a5e109a4a23367810de09be826c52d27ee2f (patch) | |
tree | ba589f9ff3687ef952bc5a4c300f1d6af2b65a05 /scripts/mod/file2alias.c | |
parent | 696ffaf50e1f8dbc66223ff614473f945f5fb8d8 (diff) |
printk: Add per-console suspended state
Currently the global @console_suspended is used to determine if
consoles are in a suspended state. Its primary purpose is to allow
usage of the console_lock when suspended without causing console
printing. It is synchronized by the console_lock.
Rather than relying on the console_lock to determine suspended
state, make it an official per-console state that is set within
console->flags. This allows the state to be queried via SRCU.
Remove @console_suspended. Console printing will still be avoided
when suspended because console_is_usable() returns false when
the new suspended flag is set for that console.
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions