aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c29
1 files changed, 8 insertions, 21 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 49e13e1f8fe6..74f5b580fe34 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -112,9 +112,6 @@ extern int sysctl_nr_open_min, sysctl_nr_open_max;
112#ifndef CONFIG_MMU 112#ifndef CONFIG_MMU
113extern int sysctl_nr_trim_pages; 113extern int sysctl_nr_trim_pages;
114#endif 114#endif
115#ifdef CONFIG_BLOCK
116extern int blk_iopoll_enabled;
117#endif
118 115
119/* Constants used for minimum and maximum */ 116/* Constants used for minimum and maximum */
120#ifdef CONFIG_LOCKUP_DETECTOR 117#ifdef CONFIG_LOCKUP_DETECTOR
@@ -126,7 +123,7 @@ static int __maybe_unused neg_one = -1;
126static int zero; 123static int zero;
127static int __maybe_unused one = 1; 124static int __maybe_unused one = 1;
128static int __maybe_unused two = 2; 125static int __maybe_unused two = 2;
129static int __maybe_unused three = 3; 126static int __maybe_unused four = 4;
130static unsigned long one_ul = 1; 127static unsigned long one_ul = 1;
131static int one_hundred = 100; 128static int one_hundred = 100;
132#ifdef CONFIG_PRINTK 129#ifdef CONFIG_PRINTK
@@ -144,6 +141,11 @@ static int min_percpu_pagelist_fract = 8;
144static int ngroups_max = NGROUPS_MAX; 141static int ngroups_max = NGROUPS_MAX;
145static const int cap_last_cap = CAP_LAST_CAP; 142static const int cap_last_cap = CAP_LAST_CAP;
146 143
144/*this is needed for proc_doulongvec_minmax of sysctl_hung_task_timeout_secs */
145#ifdef CONFIG_DETECT_HUNG_TASK
146static unsigned long hung_task_timeout_max = (LONG_MAX/HZ);
147#endif
148
147#ifdef CONFIG_INOTIFY_USER 149#ifdef CONFIG_INOTIFY_USER
148#include <linux/inotify.h> 150#include <linux/inotify.h>
149#endif 151#endif
@@ -386,13 +388,6 @@ static struct ctl_table kern_table[] = {
386 .proc_handler = proc_dointvec, 388 .proc_handler = proc_dointvec,
387 }, 389 },
388 { 390 {
389 .procname = "numa_balancing_migrate_deferred",
390 .data = &sysctl_numa_balancing_migrate_deferred,
391 .maxlen = sizeof(unsigned int),
392 .mode = 0644,
393 .proc_handler = proc_dointvec,
394 },
395 {
396 .procname = "numa_balancing", 391 .procname = "numa_balancing",
397 .data = NULL, /* filled in by handler */ 392 .data = NULL, /* filled in by handler */
398 .maxlen = sizeof(unsigned int), 393 .maxlen = sizeof(unsigned int),
@@ -995,6 +990,7 @@ static struct ctl_table kern_table[] = {
995 .maxlen = sizeof(unsigned long), 990 .maxlen = sizeof(unsigned long),
996 .mode = 0644, 991 .mode = 0644,
997 .proc_handler = proc_dohung_task_timeout_secs, 992 .proc_handler = proc_dohung_task_timeout_secs,
993 .extra2 = &hung_task_timeout_max,
998 }, 994 },
999 { 995 {
1000 .procname = "hung_task_warnings", 996 .procname = "hung_task_warnings",
@@ -1094,15 +1090,6 @@ static struct ctl_table kern_table[] = {
1094 .proc_handler = proc_dointvec, 1090 .proc_handler = proc_dointvec,
1095 }, 1091 },
1096#endif 1092#endif
1097#ifdef CONFIG_BLOCK
1098 {
1099 .procname = "blk_iopoll",
1100 .data = &blk_iopoll_enabled,
1101 .maxlen = sizeof(int),
1102 .mode = 0644,
1103 .proc_handler = proc_dointvec,
1104 },
1105#endif
1106 { } 1093 { }
1107}; 1094};
1108 1095
@@ -1283,7 +1270,7 @@ static struct ctl_table vm_table[] = {
1283 .mode = 0644, 1270 .mode = 0644,
1284 .proc_handler = drop_caches_sysctl_handler, 1271 .proc_handler = drop_caches_sysctl_handler,
1285 .extra1 = &one, 1272 .extra1 = &one,
1286 .extra2 = &three, 1273 .extra2 = &four,
1287 }, 1274 },
1288#ifdef CONFIG_COMPACTION 1275#ifdef CONFIG_COMPACTION
1289 { 1276 {