Revert "make sysctl constants read-only"
This reverts commit 1f63f26cd2
.
This commit is contained in:
parent
88a604e7c4
commit
eb9f49cfc7
1 changed files with 19 additions and 19 deletions
|
@ -119,27 +119,27 @@ EXPORT_SYMBOL(deny_new_usb);
|
||||||
|
|
||||||
/* Constants used for minimum and maximum */
|
/* Constants used for minimum and maximum */
|
||||||
#ifdef CONFIG_LOCKUP_DETECTOR
|
#ifdef CONFIG_LOCKUP_DETECTOR
|
||||||
static int sixty __read_only = 60;
|
static int sixty = 60;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned long __read_only zero_ul;
|
static unsigned long zero_ul;
|
||||||
static unsigned long __read_only one_ul = 1;
|
static unsigned long one_ul = 1;
|
||||||
static unsigned long __read_only long_max = LONG_MAX;
|
static unsigned long long_max = LONG_MAX;
|
||||||
#ifdef CONFIG_PRINTK
|
#ifdef CONFIG_PRINTK
|
||||||
static int ten_thousand __read_only = 10000;
|
static int ten_thousand = 10000;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PERF_EVENTS
|
#ifdef CONFIG_PERF_EVENTS
|
||||||
static int six_hundred_forty_kb __read_only = 640 * 1024;
|
static int six_hundred_forty_kb = 640 * 1024;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */
|
/* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */
|
||||||
static unsigned long dirty_bytes_min __read_only = 2 * PAGE_SIZE;
|
static unsigned long dirty_bytes_min = 2 * PAGE_SIZE;
|
||||||
|
|
||||||
/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
|
/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
|
||||||
static int maxolduid __read_only = 65535;
|
static int maxolduid = 65535;
|
||||||
static int minolduid __read_only;
|
static int minolduid;
|
||||||
|
|
||||||
static int ngroups_max __read_only = NGROUPS_MAX;
|
static int ngroups_max = NGROUPS_MAX;
|
||||||
static const int cap_last_cap = CAP_LAST_CAP;
|
static const int cap_last_cap = CAP_LAST_CAP;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -147,7 +147,7 @@ static const int cap_last_cap = CAP_LAST_CAP;
|
||||||
* and hung_task_check_interval_secs
|
* and hung_task_check_interval_secs
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_DETECT_HUNG_TASK
|
#ifdef CONFIG_DETECT_HUNG_TASK
|
||||||
static unsigned long hung_task_timeout_max __read_only = (LONG_MAX/HZ);
|
static unsigned long hung_task_timeout_max = (LONG_MAX/HZ);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_INOTIFY_USER
|
#ifdef CONFIG_INOTIFY_USER
|
||||||
|
@ -193,19 +193,19 @@ int sysctl_legacy_va_layout;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_DEBUG
|
#ifdef CONFIG_SCHED_DEBUG
|
||||||
static int min_sched_granularity_ns __read_only = 100000; /* 100 usecs */
|
static int min_sched_granularity_ns = 100000; /* 100 usecs */
|
||||||
static int max_sched_granularity_ns __read_only = NSEC_PER_SEC; /* 1 second */
|
static int max_sched_granularity_ns = NSEC_PER_SEC; /* 1 second */
|
||||||
static int min_wakeup_granularity_ns __read_only; /* 0 usecs */
|
static int min_wakeup_granularity_ns; /* 0 usecs */
|
||||||
static int max_wakeup_granularity_ns __read_only = NSEC_PER_SEC; /* 1 second */
|
static int max_wakeup_granularity_ns = NSEC_PER_SEC; /* 1 second */
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
static int min_sched_tunable_scaling __read_only = SCHED_TUNABLESCALING_NONE;
|
static int min_sched_tunable_scaling = SCHED_TUNABLESCALING_NONE;
|
||||||
static int max_sched_tunable_scaling __read_only = SCHED_TUNABLESCALING_END-1;
|
static int max_sched_tunable_scaling = SCHED_TUNABLESCALING_END-1;
|
||||||
#endif /* CONFIG_SMP */
|
#endif /* CONFIG_SMP */
|
||||||
#endif /* CONFIG_SCHED_DEBUG */
|
#endif /* CONFIG_SCHED_DEBUG */
|
||||||
|
|
||||||
#ifdef CONFIG_COMPACTION
|
#ifdef CONFIG_COMPACTION
|
||||||
static int min_extfrag_threshold __read_only;
|
static int min_extfrag_threshold;
|
||||||
static int max_extfrag_threshold __read_only = 1000;
|
static int max_extfrag_threshold = 1000;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_SYSCTL */
|
#endif /* CONFIG_SYSCTL */
|
||||||
|
|
Loading…
Reference in a new issue