diff options
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 18 |
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 | ||
177 | static inline int dl_bandwidth_enabled(void) | 177 | static 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 | ||
182 | extern struct dl_bw *dl_bw_of(int i); | 182 | extern 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 | ||
189 | static inline u64 global_dl_period(void); | ||
190 | static inline u64 global_dl_runtime(void); | ||
191 | |||
192 | extern struct mutex sched_domains_mutex; | 189 | extern 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 | ||
956 | static inline u64 global_dl_period(void) | ||
957 | { | ||
958 | return (u64)sysctl_sched_dl_period * NSEC_PER_USEC; | ||
959 | } | ||
960 | |||
961 | static 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 | |||
969 | static inline int task_current(struct rq *rq, struct task_struct *p) | 953 | static inline int task_current(struct rq *rq, struct task_struct *p) |
970 | { | 954 | { |
971 | return rq->curr == p; | 955 | return rq->curr == p; |