printk: move @seq initialization to helper
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 16 Nov 2022 16:21:17 +0000 (17:27 +0106)
committerPetr Mladek <pmladek@suse.com>
Fri, 2 Dec 2022 10:24:59 +0000 (11:24 +0100)
commitb80ea0e81b3954e4c519e0c257b095e77cf94d86
treeaa41fb81e727a4a691fb2ad7cf2792f46c188d8b
parent1145703612462b9bab2a325c305408ebfb6de304
printk: move @seq initialization to helper

The code to initialize @seq for a new console needs to consider
more factors when choosing an initial value. Move the code into
a helper function console_init_seq() "as is" so this code can
be expanded without causing register_console() to become too
long. A later commit will implement the additional code.

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