Skip to content

Commit b2d6aba

Browse files
jbeulichingomolnar
authored andcommitted
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: Jan Beulich <jbeulich@suse.com> Link: http://lkml.kernel.org/r/4F79D120020000780007C031@nat28.tlf.novell.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 396e2c6 commit b2d6aba

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎arch/x86/kernel/hpet.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,18 @@ static int hpet_verbose;
9494

9595
static int __init hpet_setup(char *str)
9696
{
97-
if (str) {
97+
while (str) {
98+
char *next = strchr(str, ',');
99+
100+
if (next)
101+
*next++ = 0;
98102
if (!strncmp("disable", str, 7))
99103
boot_hpet_disable = 1;
100104
if (!strncmp("force", str, 5))
101105
hpet_force_user = 1;
102106
if (!strncmp("verbose", str, 7))
103107
hpet_verbose = 1;
108+
str = next;
104109
}
105110
return 1;
106111
}

0 commit comments

Comments
 (0)