Commit 7aa79f94 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

[S390] vdso: kernel parameter syntax



The syntax of the vdso kernel parameter is documented as vdso=[on|off].
The implementation uses vdso=[0|1], an invalid parameter string disables
the vdso support. Fix the mismatch by adding vdso=[on|off] as additional
parameter syntax.
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 8ebf9756
...@@ -53,8 +53,19 @@ unsigned int __read_mostly vdso_enabled = 1; ...@@ -53,8 +53,19 @@ unsigned int __read_mostly vdso_enabled = 1;
static int __init vdso_setup(char *s) static int __init vdso_setup(char *s)
{ {
vdso_enabled = simple_strtoul(s, NULL, 0); unsigned long val;
return 1; int rc;
rc = 0;
if (strncmp(s, "on", 3) == 0)
vdso_enabled = 1;
else if (strncmp(s, "off", 4) == 0)
vdso_enabled = 0;
else {
rc = strict_strtoul(s, 0, &val);
vdso_enabled = rc ? 0 : !!val;
}
return !rc;
} }
__setup("vdso=", vdso_setup); __setup("vdso=", vdso_setup);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment