]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - lib/cmdline.c
lib: Add a generic cmdline parse function parse_option_str
authorDave Young <dyoung@redhat.com>
Thu, 14 Aug 2014 09:15:27 +0000 (17:15 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 3 Oct 2014 17:40:58 +0000 (18:40 +0100)
commit6ccc72b87b83ece31c2a75bbe07f440b0378f7a9
tree777aaf2d1e492963dc65bff61c236edb31532650
parentb2e0a54a1296a91b800f316df7bef7d1905e4fd0
lib: Add a generic cmdline parse function parse_option_str

There should be a generic function to parse params like a=b,c
Adding parse_option_str in lib/cmdline.c which will return true
if there's specified option set in the params.

Also updated efi=old_map parsing code to use the new function

Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi.c
include/linux/kernel.h
lib/cmdline.c