projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
396e2c6
)
x86: Allow multiple values to be specified with "hpet="
author
Jan Beulich
<JBeulich@suse.com>
Mon, 2 Apr 2012 14:17:36 +0000
(15:17 +0100)
committer
Ingo Molnar
<mingo@kernel.org>
Mon, 7 May 2012 13:06:28 +0000
(15:06 +0200)
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>
arch/x86/kernel/hpet.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/hpet.c
b/arch/x86/kernel/hpet.c
index 70bce5db1bb9c09bd899961355a5b278fb946f8a..9cc7b4392f7c8b0462ad4d031667e5197eff9373 100644
(file)
--- a/
arch/x86/kernel/hpet.c
+++ b/
arch/x86/kernel/hpet.c
@@
-94,13
+94,18
@@
static int hpet_verbose;
static int __init hpet_setup(char *str)
{
- if (str) {
+ while (str) {
+ char *next = strchr(str, ',');
+
+ if (next)
+ *next++ = 0;
if (!strncmp("disable", str, 7))
boot_hpet_disable = 1;
if (!strncmp("force", str, 5))
hpet_force_user = 1;
if (!strncmp("verbose", str, 7))
hpet_verbose = 1;
+ str = next;
}
return 1;
}