diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2023-05-24 12:25:14 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-05-30 22:46:26 +0200 |
commit | 3f4bf7aa315bf55b2a569bf77f61ff81c7e11fc1 (patch) | |
tree | 79106785fbdabc34ea0ff312e9c3d19525d8fbec /kernel/sched/deadline.c | |
parent | sched/fair: Move unused stub functions to header (diff) | |
download | linux-3f4bf7aa315bf55b2a569bf77f61ff81c7e11fc1.tar.xz linux-3f4bf7aa315bf55b2a569bf77f61ff81c7e11fc1.zip |
sched/deadline: remove unused dl_bandwidth
The default deadline bandwidth control structure has been removed since
commit eb77cf1c151c ("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 <linmiaohe@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/r/20230524102514.407486-1-linmiaohe@huawei.com
Diffstat (limited to 'kernel/sched/deadline.c')
-rw-r--r-- | kernel/sched/deadline.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 5a9a4b81c972..f827067ad03b 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -489,13 +489,6 @@ static inline int is_leftmost(struct task_struct *p, struct dl_rq *dl_rq) static void init_dl_rq_bw_ratio(struct dl_rq *dl_rq); -void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) -{ - raw_spin_lock_init(&dl_b->dl_runtime_lock); - dl_b->dl_period = period; - dl_b->dl_runtime = runtime; -} - void init_dl_bw(struct dl_bw *dl_b) { raw_spin_lock_init(&dl_b->lock); |