Skip to content

Commit eb77cf1

Browse files
deggemanPeter Zijlstra
authored andcommitted
sched/deadline: Remove unused def_dl_bandwidth
Since commit 1724813 ("sched/deadline: Remove the sysctl_sched_dl knobs") the default deadline bandwidth control structure has no purpose. Remove it. Signed-off-by: Dietmar Eggemann <[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 25795ef commit eb77cf1

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

kernel/sched/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9420,7 +9420,6 @@ void __init sched_init(void)
94209420
#endif /* CONFIG_CPUMASK_OFFSTACK */
94219421

94229422
init_rt_bandwidth(&def_rt_bandwidth, global_rt_period(), global_rt_runtime());
9423-
init_dl_bandwidth(&def_dl_bandwidth, global_rt_period(), global_rt_runtime());
94249423

94259424
#ifdef CONFIG_SMP
94269425
init_defrootdomain();

kernel/sched/deadline.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include "sched.h"
1919
#include "pelt.h"
2020

21-
struct dl_bandwidth def_dl_bandwidth;
22-
2321
static inline struct task_struct *dl_task_of(struct sched_dl_entity *dl_se)
2422
{
2523
return container_of(dl_se, struct task_struct, dl);
@@ -423,12 +421,10 @@ void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime)
423421
void init_dl_bw(struct dl_bw *dl_b)
424422
{
425423
raw_spin_lock_init(&dl_b->lock);
426-
raw_spin_lock(&def_dl_bandwidth.dl_runtime_lock);
427424
if (global_rt_runtime() == RUNTIME_INF)
428425
dl_b->bw = -1;
429426
else
430427
dl_b->bw = to_ratio(global_rt_period(), global_rt_runtime());
431-
raw_spin_unlock(&def_dl_bandwidth.dl_runtime_lock);
432428
dl_b->total_bw = 0;
433429
}
434430

@@ -2731,9 +2727,6 @@ void sched_dl_do_global(void)
27312727
int cpu;
27322728
unsigned long flags;
27332729

2734-
def_dl_bandwidth.dl_period = global_rt_period();
2735-
def_dl_bandwidth.dl_runtime = global_rt_runtime();
2736-
27372730
if (global_rt_runtime() != RUNTIME_INF)
27382731
new_bw = to_ratio(global_rt_period(), global_rt_runtime());
27392732

kernel/sched/sched.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2333,7 +2333,6 @@ extern void resched_cpu(int cpu);
23332333
extern struct rt_bandwidth def_rt_bandwidth;
23342334
extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime);
23352335

2336-
extern struct dl_bandwidth def_dl_bandwidth;
23372336
extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime);
23382337
extern void init_dl_task_timer(struct sched_dl_entity *dl_se);
23392338
extern void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se);

0 commit comments

Comments
 (0)