summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2014-05-19 22:59:16 +0400
committerH. Peter Anvin <hpa@zytor.com>2014-05-21 07:21:24 +0400
commit1b1ded57a4f2f4420b4de7c395d1b841d8b3c41a (patch)
tree1d532435cf6dbff969a3abc80457ae52d9c0a1e5 /arch/x86/include
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c (diff)
downloadlinux-1b1ded57a4f2f4420b4de7c395d1b841d8b3c41a.tar.xz
x86, boot: Carve out early cmdline parsing function
Carve out early cmdline parsing function into .../lib/cmdline.c so it can be used by early code in the kernel proper as well. Adapted from arch/x86/boot/cmdline.c. Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/1400525957-11525-2-git-send-email-bp@alien8.de Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/cmdline.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cmdline.h b/arch/x86/include/asm/cmdline.h
new file mode 100644
index 000000000000..e01f7f7ccb0c
--- /dev/null
+++ b/arch/x86/include/asm/cmdline.h
@@ -0,0 +1,6 @@
+#ifndef _ASM_X86_CMDLINE_H
+#define _ASM_X86_CMDLINE_H
+
+int cmdline_find_option_bool(const char *cmdline_ptr, const char *option);
+
+#endif /* _ASM_X86_CMDLINE_H */