]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
printk: Let console_is_usable() handle nbcon
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:29:43 +0000 (08:35 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 12:56:24 +0000 (14:56 +0200)
commit20846d1ce2adacd2b1f8672e24d6acb26b2e757b
tree585d23b0ee5193cf44ed68d3f6c0c06b226cc942
parent864c25c83d834bdf2cb5a24c768d37236b418410
printk: Let console_is_usable() handle nbcon

The nbcon consoles use a different printing callback. For nbcon
consoles, check for the write_atomic() callback instead of
write().

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240820063001.36405-18-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/internal.h