aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 2b7421db6c41..890339099550 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -176,7 +176,7 @@ struct dl_bandwidth {
176 176
177static inline int dl_bandwidth_enabled(void) 177static inline int dl_bandwidth_enabled(void)
178{ 178{
179 return sysctl_sched_dl_runtime >= 0; 179 return sysctl_sched_rt_runtime >= 0;
180} 180}
181 181
182extern struct dl_bw *dl_bw_of(int i); 182extern struct dl_bw *dl_bw_of(int i);
@@ -186,9 +186,6 @@ struct dl_bw {
186 u64 bw, total_bw; 186 u64 bw, total_bw;
187}; 187};
188 188
189static inline u64 global_dl_period(void);
190static inline u64 global_dl_runtime(void);
191
192extern struct mutex sched_domains_mutex; 189extern struct mutex sched_domains_mutex;
193 190
194#ifdef CONFIG_CGROUP_SCHED 191#ifdef CONFIG_CGROUP_SCHED
@@ -953,19 +950,6 @@ static inline u64 global_rt_runtime(void)
953 return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC; 950 return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
954} 951}
955 952
956static inline u64 global_dl_period(void)
957{
958 return (u64)sysctl_sched_dl_period * NSEC_PER_USEC;
959}
960
961static inline u64 global_dl_runtime(void)
962{
963 if (sysctl_sched_dl_runtime < 0)
964 return RUNTIME_INF;
965
966 return (u64)sysctl_sched_dl_runtime * NSEC_PER_USEC;
967}
968
969static inline int task_current(struct rq *rq, struct task_struct *p) 953static inline int task_current(struct rq *rq, struct task_struct *p)
970{ 954{
971 return rq->curr == p; 955 return rq->curr == p;