mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
vt: Initialize conswitchp to dummy_con if unset
If the arch setup code hasn't initialized conswitchp yet, set it to dummy_con in con_init. This will allow us to drop the dummy_con initialization that's done in almost every architecture. Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Link: https://lore.kernel.org/r/20191218214506.49252-3-nivedita@alum.mit.edu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e018bc28b0
commit
805ece2a58
@ -3326,8 +3326,9 @@ static int __init con_init(void)
|
||||
|
||||
console_lock();
|
||||
|
||||
if (conswitchp)
|
||||
display_desc = conswitchp->con_startup();
|
||||
if (!conswitchp)
|
||||
conswitchp = &dummy_con;
|
||||
display_desc = conswitchp->con_startup();
|
||||
if (!display_desc) {
|
||||
fg_console = 0;
|
||||
console_unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user