summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/efi.c
diff options
context:
space:
mode:
authorLeif Lindholm2015-08-26 15:24:56 +0200
committerMatt Fleming2015-10-12 15:20:05 +0200
commit12dd00e83fb83fa41dcc965cdd1e1627494348cb (patch)
tree02824c0cacd5941a2c5530d1c81ffcd47c436ed4 /drivers/firmware/efi/efi.c
parentdrivers/firmware: Make efi/esrt.c driver explicitly non-modular (diff)
downloadkernel-qcow2-linux-12dd00e83fb83fa41dcc965cdd1e1627494348cb.tar.gz
kernel-qcow2-linux-12dd00e83fb83fa41dcc965cdd1e1627494348cb.tar.xz
kernel-qcow2-linux-12dd00e83fb83fa41dcc965cdd1e1627494348cb.zip
efi/x86: Move efi=debug option parsing to core
fed6cefe3b6e ("x86/efi: Add a "debug" option to the efi= cmdline") adds the DBG flag, but does so for x86 only. Move this early param parsing to core code. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Mark Salter <msalter@redhat.com> Cc: Borislav Petkov <bp@suse.de> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'drivers/firmware/efi/efi.c')
-rw-r--r--drivers/firmware/efi/efi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 16c4928e36af..f0372a022c86 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -63,6 +63,9 @@ static int __init parse_efi_cmdline(char *str)
return -EINVAL;
}
+ if (parse_option_str(str, "debug"))
+ set_bit(EFI_DBG, &efi.flags);
+
if (parse_option_str(str, "noruntime"))
disable_runtime = true;