diff options
author | Andre Kalb <andre.kalb@sma.de> | 2022-02-16 11:41:38 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2022-02-21 15:52:08 +0100 |
commit | a5a763b2b26678f1e01b2d031819b175d8f14555 (patch) | |
tree | fbad2042c0abcaf53998c5647bf678213ca344ae /kernel/printk/printk_ringbuffer.h | |
parent | 96b02f2fbde29a08ac7239fd9ba87ff870cf8a94 (diff) | |
download | linux-a5a763b2b26678f1e01b2d031819b175d8f14555.tar.gz |
printk: Set console_set_on_cmdline=1 when __add_preferred_console() is called with user_specified == true
In case of using console="" or console=null
set console_set_on_cmdline=1 to disable "stdout-path" node from DT.
We basically need to set it every time when __add_preferred_console()
is called with parameter 'user_specified' set.
Therefore we can move setting it into a helper function that is
called from __add_preferred_console().
Suggested-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Andre Kalb <andre.kalb@sma.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/YgzU4ho8l6XapyG2@pc6682
Diffstat (limited to 'kernel/printk/printk_ringbuffer.h')
0 files changed, 0 insertions, 0 deletions