aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c676b5ec88f5..5e63de0f9ee2 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -63,6 +63,7 @@ extern int print_fatal_signals;
63extern int sysctl_overcommit_memory; 63extern int sysctl_overcommit_memory;
64extern int sysctl_overcommit_ratio; 64extern int sysctl_overcommit_ratio;
65extern int sysctl_panic_on_oom; 65extern int sysctl_panic_on_oom;
66extern int sysctl_oom_kill_allocating_task;
66extern int max_threads; 67extern int max_threads;
67extern int core_uses_pid; 68extern int core_uses_pid;
68extern int suid_dumpable; 69extern int suid_dumpable;
@@ -781,6 +782,14 @@ static ctl_table vm_table[] = {
781 .proc_handler = &proc_dointvec, 782 .proc_handler = &proc_dointvec,
782 }, 783 },
783 { 784 {
785 .ctl_name = CTL_UNNUMBERED,
786 .procname = "oom_kill_allocating_task",
787 .data = &sysctl_oom_kill_allocating_task,
788 .maxlen = sizeof(sysctl_oom_kill_allocating_task),
789 .mode = 0644,
790 .proc_handler = &proc_dointvec,
791 },
792 {
784 .ctl_name = VM_OVERCOMMIT_RATIO, 793 .ctl_name = VM_OVERCOMMIT_RATIO,
785 .procname = "overcommit_ratio", 794 .procname = "overcommit_ratio",
786 .data = &sysctl_overcommit_ratio, 795 .data = &sysctl_overcommit_ratio,