diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index f54afed8426f..93a2c5398648 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -133,6 +133,10 @@ extern int acct_parm[]; | |||
133 | extern int no_unaligned_warning; | 133 | extern int no_unaligned_warning; |
134 | #endif | 134 | #endif |
135 | 135 | ||
136 | #ifdef CONFIG_RT_MUTEXES | ||
137 | extern int max_lock_depth; | ||
138 | #endif | ||
139 | |||
136 | static int parse_table(int __user *, int, void __user *, size_t __user *, void __user *, size_t, | 140 | static int parse_table(int __user *, int, void __user *, size_t __user *, void __user *, size_t, |
137 | ctl_table *, void **); | 141 | ctl_table *, void **); |
138 | static int proc_doutsstring(ctl_table *table, int write, struct file *filp, | 142 | static int proc_doutsstring(ctl_table *table, int write, struct file *filp, |
@@ -688,6 +692,17 @@ static ctl_table kern_table[] = { | |||
688 | .proc_handler = &proc_dointvec, | 692 | .proc_handler = &proc_dointvec, |
689 | }, | 693 | }, |
690 | #endif | 694 | #endif |
695 | #ifdef CONFIG_RT_MUTEXES | ||
696 | { | ||
697 | .ctl_name = KERN_MAX_LOCK_DEPTH, | ||
698 | .procname = "max_lock_depth", | ||
699 | .data = &max_lock_depth, | ||
700 | .maxlen = sizeof(int), | ||
701 | .mode = 0644, | ||
702 | .proc_handler = &proc_dointvec, | ||
703 | }, | ||
704 | #endif | ||
705 | |||
691 | { .ctl_name = 0 } | 706 | { .ctl_name = 0 } |
692 | }; | 707 | }; |
693 | 708 | ||