diff options
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 0d562d6531eb..6b16e16428d8 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -83,6 +83,9 @@ extern int maps_protect; | |||
| 83 | extern int sysctl_stat_interval; | 83 | extern int sysctl_stat_interval; |
| 84 | extern int latencytop_enabled; | 84 | extern int latencytop_enabled; |
| 85 | extern int sysctl_nr_open_min, sysctl_nr_open_max; | 85 | extern int sysctl_nr_open_min, sysctl_nr_open_max; |
| 86 | #ifdef CONFIG_RCU_TORTURE_TEST | ||
| 87 | extern int rcutorture_runnable; | ||
| 88 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ | ||
| 86 | 89 | ||
| 87 | /* Constants used for minimum and maximum */ | 90 | /* Constants used for minimum and maximum */ |
| 88 | #if defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM) | 91 | #if defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM) |
| @@ -820,6 +823,16 @@ static struct ctl_table kern_table[] = { | |||
| 820 | .child = key_sysctls, | 823 | .child = key_sysctls, |
| 821 | }, | 824 | }, |
| 822 | #endif | 825 | #endif |
| 826 | #ifdef CONFIG_RCU_TORTURE_TEST | ||
| 827 | { | ||
| 828 | .ctl_name = CTL_UNNUMBERED, | ||
| 829 | .procname = "rcutorture_runnable", | ||
| 830 | .data = &rcutorture_runnable, | ||
| 831 | .maxlen = sizeof(int), | ||
| 832 | .mode = 0644, | ||
| 833 | .proc_handler = &proc_dointvec, | ||
| 834 | }, | ||
| 835 | #endif | ||
| 823 | /* | 836 | /* |
| 824 | * NOTE: do not add new entries to this table unless you have read | 837 | * NOTE: do not add new entries to this table unless you have read |
| 825 | * Documentation/sysctl/ctl_unnumbered.txt | 838 | * Documentation/sysctl/ctl_unnumbered.txt |
