aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c40
1 files changed, 28 insertions, 12 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 98e02328c67..6bb59f70740 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -91,6 +91,7 @@ extern int sysctl_nr_trim_pages;
91#ifdef CONFIG_RCU_TORTURE_TEST 91#ifdef CONFIG_RCU_TORTURE_TEST
92extern int rcutorture_runnable; 92extern int rcutorture_runnable;
93#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ 93#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */
94extern int blk_iopoll_enabled;
94 95
95/* Constants used for minimum and maximum */ 96/* Constants used for minimum and maximum */
96#ifdef CONFIG_DETECT_SOFTLOCKUP 97#ifdef CONFIG_DETECT_SOFTLOCKUP
@@ -245,6 +246,14 @@ static int max_wakeup_granularity_ns = NSEC_PER_SEC; /* 1 second */
245#endif 246#endif
246 247
247static struct ctl_table kern_table[] = { 248static struct ctl_table kern_table[] = {
249 {
250 .ctl_name = CTL_UNNUMBERED,
251 .procname = "sched_child_runs_first",
252 .data = &sysctl_sched_child_runs_first,
253 .maxlen = sizeof(unsigned int),
254 .mode = 0644,
255 .proc_handler = &proc_dointvec,
256 },
248#ifdef CONFIG_SCHED_DEBUG 257#ifdef CONFIG_SCHED_DEBUG
249 { 258 {
250 .ctl_name = CTL_UNNUMBERED, 259 .ctl_name = CTL_UNNUMBERED,
@@ -299,14 +308,6 @@ static struct ctl_table kern_table[] = {
299 }, 308 },
300 { 309 {
301 .ctl_name = CTL_UNNUMBERED, 310 .ctl_name = CTL_UNNUMBERED,
302 .procname = "sched_child_runs_first",
303 .data = &sysctl_sched_child_runs_first,
304 .maxlen = sizeof(unsigned int),
305 .mode = 0644,
306 .proc_handler = &proc_dointvec,
307 },
308 {
309 .ctl_name = CTL_UNNUMBERED,
310 .procname = "sched_features", 311 .procname = "sched_features",
311 .data = &sysctl_sched_features, 312 .data = &sysctl_sched_features,
312 .maxlen = sizeof(unsigned int), 313 .maxlen = sizeof(unsigned int),
@@ -331,6 +332,14 @@ static struct ctl_table kern_table[] = {
331 }, 332 },
332 { 333 {
333 .ctl_name = CTL_UNNUMBERED, 334 .ctl_name = CTL_UNNUMBERED,
335 .procname = "sched_time_avg",
336 .data = &sysctl_sched_time_avg,
337 .maxlen = sizeof(unsigned int),
338 .mode = 0644,
339 .proc_handler = &proc_dointvec,
340 },
341 {
342 .ctl_name = CTL_UNNUMBERED,
334 .procname = "timer_migration", 343 .procname = "timer_migration",
335 .data = &sysctl_timer_migration, 344 .data = &sysctl_timer_migration,
336 .maxlen = sizeof(unsigned int), 345 .maxlen = sizeof(unsigned int),
@@ -989,7 +998,14 @@ static struct ctl_table kern_table[] = {
989 .proc_handler = &proc_dointvec, 998 .proc_handler = &proc_dointvec,
990 }, 999 },
991#endif 1000#endif
992 1001 {
1002 .ctl_name = CTL_UNNUMBERED,
1003 .procname = "blk_iopoll",
1004 .data = &blk_iopoll_enabled,
1005 .maxlen = sizeof(int),
1006 .mode = 0644,
1007 .proc_handler = &proc_dointvec,
1008 },
993/* 1009/*
994 * NOTE: do not add new entries to this table unless you have read 1010 * NOTE: do not add new entries to this table unless you have read
995 * Documentation/sysctl/ctl_unnumbered.txt 1011 * Documentation/sysctl/ctl_unnumbered.txt
@@ -1306,10 +1322,10 @@ static struct ctl_table vm_table[] = {
1306 { 1322 {
1307 .ctl_name = CTL_UNNUMBERED, 1323 .ctl_name = CTL_UNNUMBERED,
1308 .procname = "mmap_min_addr", 1324 .procname = "mmap_min_addr",
1309 .data = &mmap_min_addr, 1325 .data = &dac_mmap_min_addr,
1310 .maxlen = sizeof(unsigned long), 1326 .maxlen = sizeof(unsigned long),
1311 .mode = 0644, 1327 .mode = 0644,
1312 .proc_handler = &proc_doulongvec_minmax, 1328 .proc_handler = &mmap_min_addr_handler,
1313 }, 1329 },
1314#ifdef CONFIG_NUMA 1330#ifdef CONFIG_NUMA
1315 { 1331 {