diff options
author | Andy Lutomirski <luto@amacapital.net> | 2014-05-05 15:19:32 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-05-05 16:18:40 -0400 |
commit | 3d7ee969bffcc984c8aeaffc6ac6816fd929ace1 (patch) | |
tree | 7f365d4f40885740ac0007d030f890ec0b69fb85 /kernel/sysctl.c | |
parent | 73159fdcdb9be3eda61b846864352c29371baeb6 (diff) |
x86, vdso: Clean up 32-bit vs 64-bit vdso params
Rather than using 'vdso_enabled' and an awful #define, just call the
parameters vdso32_enabled and vdso64_enabled.
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/87913de56bdcbae3d93917938302fc369b05caee.1399317206.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 74f5b580fe34..420d77afa8fd 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1418,8 +1418,13 @@ static struct ctl_table vm_table[] = { | |||
1418 | (defined(CONFIG_SUPERH) && defined(CONFIG_VSYSCALL)) | 1418 | (defined(CONFIG_SUPERH) && defined(CONFIG_VSYSCALL)) |
1419 | { | 1419 | { |
1420 | .procname = "vdso_enabled", | 1420 | .procname = "vdso_enabled", |
1421 | #ifdef CONFIG_X86_32 | ||
1422 | .data = &vdso32_enabled, | ||
1423 | .maxlen = sizeof(vdso32_enabled), | ||
1424 | #else | ||
1421 | .data = &vdso_enabled, | 1425 | .data = &vdso_enabled, |
1422 | .maxlen = sizeof(vdso_enabled), | 1426 | .maxlen = sizeof(vdso_enabled), |
1427 | #endif | ||
1423 | .mode = 0644, | 1428 | .mode = 0644, |
1424 | .proc_handler = proc_dointvec, | 1429 | .proc_handler = proc_dointvec, |
1425 | .extra1 = &zero, | 1430 | .extra1 = &zero, |