aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2013-02-07 10:46:59 -0500
committerIngo Molnar <mingo@kernel.org>2013-02-07 14:50:54 -0500
commitcf4aebc292fac7f34f8345664320e9d4a42ca76c (patch)
tree6eceb9bb2d8382c4499366a8fee060688aad6107 /include/linux/sched.h
parentb2c77a57e4a0a7877e357dead7ee8acc19944f3e (diff)
sched: Move sched.h sysctl bits into separate header
Move the sysctl-related bits from include/linux/sched.h into a new file: include/linux/sched/sysctl.h. Then update source files requiring access to those bits by including the new header file. Signed-off-by: Clark Williams <williams@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/20130207094659.06dced96@riff.lan Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h91
1 files changed, 0 insertions, 91 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 719ee0815e3a..8fc9b2710a80 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -304,19 +304,6 @@ static inline void lockup_detector_init(void)
304} 304}
305#endif 305#endif
306 306
307#ifdef CONFIG_DETECT_HUNG_TASK
308extern unsigned int sysctl_hung_task_panic;
309extern unsigned long sysctl_hung_task_check_count;
310extern unsigned long sysctl_hung_task_timeout_secs;
311extern unsigned long sysctl_hung_task_warnings;
312extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write,
313 void __user *buffer,
314 size_t *lenp, loff_t *ppos);
315#else
316/* Avoid need for ifdefs elsewhere in the code */
317enum { sysctl_hung_task_timeout_secs = 0 };
318#endif
319
320/* Attach to any functions which should be ignored in wchan output. */ 307/* Attach to any functions which should be ignored in wchan output. */
321#define __sched __attribute__((__section__(".sched.text"))) 308#define __sched __attribute__((__section__(".sched.text")))
322 309
@@ -338,23 +325,6 @@ extern int mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner);
338struct nsproxy; 325struct nsproxy;
339struct user_namespace; 326struct user_namespace;
340 327
341/*
342 * Default maximum number of active map areas, this limits the number of vmas
343 * per mm struct. Users can overwrite this number by sysctl but there is a
344 * problem.
345 *
346 * When a program's coredump is generated as ELF format, a section is created
347 * per a vma. In ELF, the number of sections is represented in unsigned short.
348 * This means the number of sections should be smaller than 65535 at coredump.
349 * Because the kernel adds some informative sections to a image of program at
350 * generating coredump, we need some margin. The number of extra sections is
351 * 1-3 now and depends on arch. We use "5" as safe margin, here.
352 */
353#define MAPCOUNT_ELF_CORE_MARGIN (5)
354#define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN)
355
356extern int sysctl_max_map_count;
357
358#include <linux/aio.h> 328#include <linux/aio.h>
359 329
360#ifdef CONFIG_MMU 330#ifdef CONFIG_MMU
@@ -1221,12 +1191,6 @@ struct sched_rt_entity {
1221#endif 1191#endif
1222}; 1192};
1223 1193
1224/*
1225 * default timeslice is 100 msecs (used only for SCHED_RR tasks).
1226 * Timeslices get refilled after they expire.
1227 */
1228#define RR_TIMESLICE (100 * HZ / 1000)
1229
1230struct rcu_node; 1194struct rcu_node;
1231 1195
1232enum perf_event_task_context { 1196enum perf_event_task_context {
@@ -2074,58 +2038,7 @@ extern void wake_up_idle_cpu(int cpu);
2074static inline void wake_up_idle_cpu(int cpu) { } 2038static inline void wake_up_idle_cpu(int cpu) { }
2075#endif 2039#endif
2076 2040
2077extern unsigned int sysctl_sched_latency;
2078extern unsigned int sysctl_sched_min_granularity;
2079extern unsigned int sysctl_sched_wakeup_granularity;
2080extern unsigned int sysctl_sched_child_runs_first;
2081
2082enum sched_tunable_scaling {
2083 SCHED_TUNABLESCALING_NONE,
2084 SCHED_TUNABLESCALING_LOG,
2085 SCHED_TUNABLESCALING_LINEAR,
2086 SCHED_TUNABLESCALING_END,
2087};
2088extern enum sched_tunable_scaling sysctl_sched_tunable_scaling;
2089
2090extern unsigned int sysctl_numa_balancing_scan_delay;
2091extern unsigned int sysctl_numa_balancing_scan_period_min;
2092extern unsigned int sysctl_numa_balancing_scan_period_max;
2093extern unsigned int sysctl_numa_balancing_scan_period_reset;
2094extern unsigned int sysctl_numa_balancing_scan_size;
2095extern unsigned int sysctl_numa_balancing_settle_count;
2096
2097#ifdef CONFIG_SCHED_DEBUG
2098extern unsigned int sysctl_sched_migration_cost;
2099extern unsigned int sysctl_sched_nr_migrate;
2100extern unsigned int sysctl_sched_time_avg;
2101extern unsigned int sysctl_timer_migration;
2102extern unsigned int sysctl_sched_shares_window;
2103
2104int sched_proc_update_handler(struct ctl_table *table, int write,
2105 void __user *buffer, size_t *length,
2106 loff_t *ppos);
2107#endif
2108#ifdef CONFIG_SCHED_DEBUG
2109static inline unsigned int get_sysctl_timer_migration(void)
2110{
2111 return sysctl_timer_migration;
2112}
2113#else
2114static inline unsigned int get_sysctl_timer_migration(void)
2115{
2116 return 1;
2117}
2118#endif
2119extern unsigned int sysctl_sched_rt_period;
2120extern int sysctl_sched_rt_runtime;
2121
2122int sched_rt_handler(struct ctl_table *table, int write,
2123 void __user *buffer, size_t *lenp,
2124 loff_t *ppos);
2125
2126#ifdef CONFIG_SCHED_AUTOGROUP 2041#ifdef CONFIG_SCHED_AUTOGROUP
2127extern unsigned int sysctl_sched_autogroup_enabled;
2128
2129extern void sched_autogroup_create_attach(struct task_struct *p); 2042extern void sched_autogroup_create_attach(struct task_struct *p);
2130extern void sched_autogroup_detach(struct task_struct *p); 2043extern void sched_autogroup_detach(struct task_struct *p);
2131extern void sched_autogroup_fork(struct signal_struct *sig); 2044extern void sched_autogroup_fork(struct signal_struct *sig);
@@ -2141,10 +2054,6 @@ static inline void sched_autogroup_fork(struct signal_struct *sig) { }
2141static inline void sched_autogroup_exit(struct signal_struct *sig) { } 2054static inline void sched_autogroup_exit(struct signal_struct *sig) { }
2142#endif 2055#endif
2143 2056
2144#ifdef CONFIG_CFS_BANDWIDTH
2145extern unsigned int sysctl_sched_cfs_bandwidth_slice;
2146#endif
2147
2148#ifdef CONFIG_RT_MUTEXES 2057#ifdef CONFIG_RT_MUTEXES
2149extern int rt_mutex_getprio(struct task_struct *p); 2058extern int rt_mutex_getprio(struct task_struct *p);
2150extern void rt_mutex_setprio(struct task_struct *p, int prio); 2059extern void rt_mutex_setprio(struct task_struct *p, int prio);