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/sched.h | |
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/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 678446251c35..d8ba81c66579 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -286,12 +286,6 @@ struct rt_bandwidth { void __dl_clear_params(struct task_struct *p); -struct dl_bandwidth { - raw_spinlock_t dl_runtime_lock; - u64 dl_runtime; - u64 dl_period; -}; - static inline int dl_bandwidth_enabled(void) { return sysctl_sched_rt_runtime >= 0; @@ -2394,7 +2388,6 @@ extern struct rt_bandwidth def_rt_bandwidth; extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime); extern bool sched_rt_bandwidth_account(struct rt_rq *rt_rq); -extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime); extern void init_dl_task_timer(struct sched_dl_entity *dl_se); extern void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se); |