printk: Convert console_drivers list to hlist
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Nov 2022 16:21:14 +0000 (17:27 +0106)
committerPetr Mladek <pmladek@suse.com>
Fri, 2 Dec 2022 10:24:59 +0000 (11:24 +0100)
commitd9a4af5690e26afa8a2eb83c575d3a9ef52cde1d
tree42dfbe9bc1d553682eb6c83b8a6e9cf93081fa41
parent9e409c4778afbbd44759e56ec4bbed839fd31909
printk: Convert console_drivers list to hlist

Replace the open coded single linked list with a hlist so a conversion
to SRCU protected list walks can reuse the existing primitives.

Co-developed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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/20221116162152.193147-3-john.ogness@linutronix.de
fs/proc/consoles.c
include/linux/console.h
kernel/printk/printk.c