diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 2aaa3f98185d..e69179b1809c 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -161,6 +161,8 @@ extern ctl_table inotify_table[]; | |||
161 | int sysctl_legacy_va_layout; | 161 | int sysctl_legacy_va_layout; |
162 | #endif | 162 | #endif |
163 | 163 | ||
164 | extern int prove_locking; | ||
165 | extern int lock_stat; | ||
164 | 166 | ||
165 | /* The default sysctl tables: */ | 167 | /* The default sysctl tables: */ |
166 | 168 | ||
@@ -282,6 +284,26 @@ static ctl_table kern_table[] = { | |||
282 | .mode = 0644, | 284 | .mode = 0644, |
283 | .proc_handler = &proc_dointvec, | 285 | .proc_handler = &proc_dointvec, |
284 | }, | 286 | }, |
287 | #ifdef CONFIG_PROVE_LOCKING | ||
288 | { | ||
289 | .ctl_name = CTL_UNNUMBERED, | ||
290 | .procname = "prove_locking", | ||
291 | .data = &prove_locking, | ||
292 | .maxlen = sizeof(int), | ||
293 | .mode = 0644, | ||
294 | .proc_handler = &proc_dointvec, | ||
295 | }, | ||
296 | #endif | ||
297 | #ifdef CONFIG_LOCK_STAT | ||
298 | { | ||
299 | .ctl_name = CTL_UNNUMBERED, | ||
300 | .procname = "lock_stat", | ||
301 | .data = &lock_stat, | ||
302 | .maxlen = sizeof(int), | ||
303 | .mode = 0644, | ||
304 | .proc_handler = &proc_dointvec, | ||
305 | }, | ||
306 | #endif | ||
285 | { | 307 | { |
286 | .ctl_name = CTL_UNNUMBERED, | 308 | .ctl_name = CTL_UNNUMBERED, |
287 | .procname = "sched_features", | 309 | .procname = "sched_features", |