diff options
author | Borislav Petkov <bp@suse.de> | 2015-02-05 11:44:41 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2015-04-01 12:46:22 +0100 |
commit | fed6cefe3b6e862dcc74d07324478caa07e84eaf (patch) | |
tree | e1977307364d2d3dfc7454ee7788fe2360909d62 /arch/x86/platform | |
parent | 552e19d8764aeea3ecdf6cf29e22d6b99a505091 (diff) | |
download | lwn-fed6cefe3b6e862dcc74d07324478caa07e84eaf.tar.gz lwn-fed6cefe3b6e862dcc74d07324478caa07e84eaf.zip |
x86/efi: Add a "debug" option to the efi= cmdline
... and hide the memory regions dump behind it. Make it default-off.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20141209095843.GA3990@pd.tnic
Acked-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/efi/efi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index dbc8627a5cdf..e859d56ce9f8 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -491,7 +491,8 @@ void __init efi_init(void) if (efi_memmap_init()) return; - print_efi_memmap(); + if (efi_enabled(EFI_DBG)) + print_efi_memmap(); } void __init efi_late_init(void) @@ -939,6 +940,8 @@ static int __init arch_parse_efi_cmdline(char *str) { if (parse_option_str(str, "old_map")) set_bit(EFI_OLD_MEMMAP, &efi.flags); + if (parse_option_str(str, "debug")) + set_bit(EFI_DBG, &efi.flags); return 0; } |