aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched/sysctl.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h
index bac914e458ca..d2bb0ae979d0 100644
--- a/include/linux/sched/sysctl.h
+++ b/include/linux/sched/sysctl.h
@@ -73,6 +73,13 @@ static inline unsigned int get_sysctl_timer_migration(void)
73 return 1; 73 return 1;
74} 74}
75#endif 75#endif
76
77/*
78 * control realtime throttling:
79 *
80 * /proc/sys/kernel/sched_rt_period_us
81 * /proc/sys/kernel/sched_rt_runtime_us
82 */
76extern unsigned int sysctl_sched_rt_period; 83extern unsigned int sysctl_sched_rt_period;
77extern int sysctl_sched_rt_runtime; 84extern int sysctl_sched_rt_runtime;
78 85
@@ -90,7 +97,13 @@ extern unsigned int sysctl_sched_autogroup_enabled;
90 */ 97 */
91#define RR_TIMESLICE (100 * HZ / 1000) 98#define RR_TIMESLICE (100 * HZ / 1000)
92 99
93int sched_rt_handler(struct ctl_table *table, int write, 100extern int sched_rr_timeslice;
101
102extern int sched_rr_handler(struct ctl_table *table, int write,
103 void __user *buffer, size_t *lenp,
104 loff_t *ppos);
105
106extern int sched_rt_handler(struct ctl_table *table, int write,
94 void __user *buffer, size_t *lenp, 107 void __user *buffer, size_t *lenp,
95 loff_t *ppos); 108 loff_t *ppos);
96 109