summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/hpet.c
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2012-04-02 15:17:36 +0100
committerIngo Molnar <mingo@kernel.org>2012-05-07 15:06:28 +0200
commitb2d6aba9657c7e3d027dd43ac7d7c405e0079d46 (patch)
treef0d1c0f99fc9c93ef9d7a293debb7c8e8e427152 /arch/x86/kernel/hpet.c
parent396e2c6fed4ff13b53ce0e573105531cf53b0cad (diff)
downloadlinux-b2d6aba9657c7e3d027dd43ac7d7c405e0079d46.tar.gz
linux-b2d6aba9657c7e3d027dd43ac7d7c405e0079d46.tar.bz2
linux-b2d6aba9657c7e3d027dd43ac7d7c405e0079d46.zip
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>
Diffstat (limited to 'arch/x86/kernel/hpet.c')
-rw-r--r--arch/x86/kernel/hpet.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 70bce5db1bb9..9cc7b4392f7c 100644
--- 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;
}