diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 6ba49c7cb128..0dfaa47d7cb6 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -106,6 +106,9 @@ static int __maybe_unused one = 1; | |||
106 | static int __maybe_unused two = 2; | 106 | static int __maybe_unused two = 2; |
107 | static unsigned long one_ul = 1; | 107 | static unsigned long one_ul = 1; |
108 | static int one_hundred = 100; | 108 | static int one_hundred = 100; |
109 | #ifdef CONFIG_PRINTK | ||
110 | static int ten_thousand = 10000; | ||
111 | #endif | ||
109 | 112 | ||
110 | /* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */ | 113 | /* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */ |
111 | static unsigned long dirty_bytes_min = 2 * PAGE_SIZE; | 114 | static unsigned long dirty_bytes_min = 2 * PAGE_SIZE; |
@@ -722,6 +725,17 @@ static struct ctl_table kern_table[] = { | |||
722 | .mode = 0644, | 725 | .mode = 0644, |
723 | .proc_handler = &proc_dointvec, | 726 | .proc_handler = &proc_dointvec, |
724 | }, | 727 | }, |
728 | { | ||
729 | .ctl_name = CTL_UNNUMBERED, | ||
730 | .procname = "printk_delay", | ||
731 | .data = &printk_delay_msec, | ||
732 | .maxlen = sizeof(int), | ||
733 | .mode = 0644, | ||
734 | .proc_handler = &proc_dointvec_minmax, | ||
735 | .strategy = &sysctl_intvec, | ||
736 | .extra1 = &zero, | ||
737 | .extra2 = &ten_thousand, | ||
738 | }, | ||
725 | #endif | 739 | #endif |
726 | { | 740 | { |
727 | .ctl_name = KERN_NGROUPS_MAX, | 741 | .ctl_name = KERN_NGROUPS_MAX, |