aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/vsyscall_64.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
index b6be812fac05..edff4c985485 100644
--- a/arch/x86/kernel/vsyscall_64.c
+++ b/arch/x86/kernel/vsyscall_64.c
@@ -222,10 +222,19 @@ long __vsyscall(3) venosys_1(void)
222} 222}
223 223
224#ifdef CONFIG_SYSCTL 224#ifdef CONFIG_SYSCTL
225
226static int
227vsyscall_sysctl_change(ctl_table *ctl, int write, struct file * filp,
228 void __user *buffer, size_t *lenp, loff_t *ppos)
229{
230 return proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
231}
232
225static ctl_table kernel_table2[] = { 233static ctl_table kernel_table2[] = {
226 { .procname = "vsyscall64", 234 { .procname = "vsyscall64",
227 .data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int), 235 .data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int),
228 .mode = 0644 }, 236 .mode = 0644,
237 .proc_handler = vsyscall_sysctl_change },
229 {} 238 {}
230}; 239};
231 240