Skip to content

Commit 3f4bf7a

Browse files
MiaoheLinPeter Zijlstra
authored andcommitted
sched/deadline: remove unused dl_bandwidth
The default deadline bandwidth control structure has been removed since commit eb77cf1 ("sched/deadline: Remove unused def_dl_bandwidth") leading to unused init_dl_bandwidth() and struct dl_bandwidth. Remove them to clean up the code. Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Juri Lelli <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7aa55f2 commit 3f4bf7a

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

kernel/sched/deadline.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,6 @@ static inline int is_leftmost(struct task_struct *p, struct dl_rq *dl_rq)
489489

490490
static void init_dl_rq_bw_ratio(struct dl_rq *dl_rq);
491491

492-
void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime)
493-
{
494-
raw_spin_lock_init(&dl_b->dl_runtime_lock);
495-
dl_b->dl_period = period;
496-
dl_b->dl_runtime = runtime;
497-
}
498-
499492
void init_dl_bw(struct dl_bw *dl_b)
500493
{
501494
raw_spin_lock_init(&dl_b->lock);

kernel/sched/sched.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,6 @@ struct rt_bandwidth {
286286

287287
void __dl_clear_params(struct task_struct *p);
288288

289-
struct dl_bandwidth {
290-
raw_spinlock_t dl_runtime_lock;
291-
u64 dl_runtime;
292-
u64 dl_period;
293-
};
294-
295289
static inline int dl_bandwidth_enabled(void)
296290
{
297291
return sysctl_sched_rt_runtime >= 0;
@@ -2394,7 +2388,6 @@ extern struct rt_bandwidth def_rt_bandwidth;
23942388
extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime);
23952389
extern bool sched_rt_bandwidth_account(struct rt_rq *rt_rq);
23962390

2397-
extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime);
23982391
extern void init_dl_task_timer(struct sched_dl_entity *dl_se);
23992392
extern void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se);
24002393

0 commit comments

Comments
 (0)