diff options
author | Borislav Petkov <bp@suse.de> | 2015-02-05 10:44:41 (GMT) |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2015-04-01 11:46:22 (GMT) |
commit | fed6cefe3b6e862dcc74d07324478caa07e84eaf (patch) | |
tree | e1977307364d2d3dfc7454ee7788fe2360909d62 /arch/x86/platform/efi | |
parent | 552e19d8764aeea3ecdf6cf29e22d6b99a505091 (diff) | |
download | linux-fed6cefe3b6e862dcc74d07324478caa07e84eaf.tar.xz |
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/efi')
-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 dbc8627..e859d56 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; } |