John Ogness 9e70a5e109 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 <john.ogness@linutronix.de>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230717194607.145135-7-john.ogness@linutronix.de
2023-07-20 13:06:22 +02:00
..
2023-04-25 12:39:01 -07:00
2023-04-24 19:14:20 -07:00
2022-12-21 14:31:52 -08:00
2023-02-23 14:00:10 -08:00
2023-04-24 12:16:14 -07:00
2023-02-23 14:05:08 -08:00
2023-04-24 12:16:14 -07:00
2023-04-12 16:46:30 +02:00
2023-04-25 11:22:46 -07:00
2023-04-25 12:39:01 -07:00
2022-08-29 19:47:03 -04:00
2022-09-26 10:13:13 -07:00
2023-02-21 15:27:48 -08:00
2023-04-24 13:03:42 -07:00
2022-11-15 00:42:02 -08:00
2023-02-02 16:26:06 -08:00
2023-04-20 22:55:35 -04:00
2022-12-19 12:33:32 -06:00
2023-04-03 11:16:56 +02:00
2022-10-10 12:49:34 -07:00
2022-02-25 09:36:06 +01:00
2023-02-21 13:34:07 -08:00
2022-08-06 16:38:17 -07:00