x86/efi: Add a "debug" option to the efi= cmdline
[deliverable/linux.git] / arch / x86 / platform / efi / efi.c
index dbc8627a5cdf6d569a5f69cbea05ebac924d2279..e859d56ce9f88661963b9ff679cb3f7b8593c9c4 100644 (file)
@@ -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;
 }
This page took 0.025936 seconds and 5 git commands to generate.