diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 0d656e61621d..072ac446810a 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -59,6 +59,7 @@ extern int proc_nr_files(ctl_table *table, int write, struct file *filp, | |||
59 | extern int C_A_D; | 59 | extern int C_A_D; |
60 | extern int sysctl_overcommit_memory; | 60 | extern int sysctl_overcommit_memory; |
61 | extern int sysctl_overcommit_ratio; | 61 | extern int sysctl_overcommit_ratio; |
62 | extern int sysctl_panic_on_oom; | ||
62 | extern int max_threads; | 63 | extern int max_threads; |
63 | extern int sysrq_enabled; | 64 | extern int sysrq_enabled; |
64 | extern int core_uses_pid; | 65 | extern int core_uses_pid; |
@@ -702,6 +703,14 @@ static ctl_table vm_table[] = { | |||
702 | .proc_handler = &proc_dointvec, | 703 | .proc_handler = &proc_dointvec, |
703 | }, | 704 | }, |
704 | { | 705 | { |
706 | .ctl_name = VM_PANIC_ON_OOM, | ||
707 | .procname = "panic_on_oom", | ||
708 | .data = &sysctl_panic_on_oom, | ||
709 | .maxlen = sizeof(sysctl_panic_on_oom), | ||
710 | .mode = 0644, | ||
711 | .proc_handler = &proc_dointvec, | ||
712 | }, | ||
713 | { | ||
705 | .ctl_name = VM_OVERCOMMIT_RATIO, | 714 | .ctl_name = VM_OVERCOMMIT_RATIO, |
706 | .procname = "overcommit_ratio", | 715 | .procname = "overcommit_ratio", |
707 | .data = &sysctl_overcommit_ratio, | 716 | .data = &sysctl_overcommit_ratio, |