提交 b2d6aba9 编写于 作者: J Jan Beulich 提交者: Ingo Molnar

x86: Allow multiple values to be specified with "hpet="

This is particularly to be able to specify "hpet=force,verbose",
as "force" ought to be a primary candidate for also wanting to
use "verbose".
Signed-off-by: NJan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/4F79D120020000780007C031@nat28.tlf.novell.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 396e2c6f
...@@ -94,13 +94,18 @@ static int hpet_verbose; ...@@ -94,13 +94,18 @@ static int hpet_verbose;
static int __init hpet_setup(char *str) static int __init hpet_setup(char *str)
{ {
if (str) { while (str) {
char *next = strchr(str, ',');
if (next)
*next++ = 0;
if (!strncmp("disable", str, 7)) if (!strncmp("disable", str, 7))
boot_hpet_disable = 1; boot_hpet_disable = 1;
if (!strncmp("force", str, 5)) if (!strncmp("force", str, 5))
hpet_force_user = 1; hpet_force_user = 1;
if (!strncmp("verbose", str, 7)) if (!strncmp("verbose", str, 7))
hpet_verbose = 1; hpet_verbose = 1;
str = next;
} }
return 1; return 1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册