diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c4887773a..d81973099 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -125,12 +125,12 @@ static int __maybe_unused one = 1; static int __maybe_unused two = 2; static int __maybe_unused four = 4; static unsigned long one_ul = 1; -static int __maybe_unused one_hundred = 100; +static int __read_mostly one_hundred = 100; +static int __read_mostly one_thousand = 1000; #ifdef CONFIG_SCHED_BFS extern int rr_interval; extern int sched_interactive; extern int sched_iso_cpu; -static int __read_mostly one_thousand = 1000; #endif #ifdef CONFIG_PRINTK static int ten_thousand = 10000; @@ -1441,6 +1441,15 @@ static struct ctl_table vm_table[] = { .extra1 = &zero, }, { + .procname = "watermark_scale_factor", + .data = &watermark_scale_factor, + .maxlen = sizeof(watermark_scale_factor), + .mode = 0644, + .proc_handler = watermark_scale_factor_sysctl_handler, + .extra1 = &one, + .extra2 = &one_thousand, + }, + { .procname = "percpu_pagelist_fraction", .data = &percpu_pagelist_fraction, .maxlen = sizeof(percpu_pagelist_fraction), |