sched/deadline: Remove unused def_dl_bandwidth
Since commit 1724813d9f
("sched/deadline: Remove the sysctl_sched_dl
knobs") the default deadline bandwidth control structure has no purpose.
Remove it.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/r/20220302183433.333029-2-dietmar.eggemann@arm.com
This commit is contained in:
parent
25795ef629
commit
eb77cf1c15
|
@ -9420,7 +9420,6 @@ void __init sched_init(void)
|
||||||
#endif /* CONFIG_CPUMASK_OFFSTACK */
|
#endif /* CONFIG_CPUMASK_OFFSTACK */
|
||||||
|
|
||||||
init_rt_bandwidth(&def_rt_bandwidth, global_rt_period(), global_rt_runtime());
|
init_rt_bandwidth(&def_rt_bandwidth, global_rt_period(), global_rt_runtime());
|
||||||
init_dl_bandwidth(&def_dl_bandwidth, global_rt_period(), global_rt_runtime());
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
init_defrootdomain();
|
init_defrootdomain();
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
#include "sched.h"
|
#include "sched.h"
|
||||||
#include "pelt.h"
|
#include "pelt.h"
|
||||||
|
|
||||||
struct dl_bandwidth def_dl_bandwidth;
|
|
||||||
|
|
||||||
static inline struct task_struct *dl_task_of(struct sched_dl_entity *dl_se)
|
static inline struct task_struct *dl_task_of(struct sched_dl_entity *dl_se)
|
||||||
{
|
{
|
||||||
return container_of(dl_se, struct task_struct, dl);
|
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)
|
||||||
void init_dl_bw(struct dl_bw *dl_b)
|
void init_dl_bw(struct dl_bw *dl_b)
|
||||||
{
|
{
|
||||||
raw_spin_lock_init(&dl_b->lock);
|
raw_spin_lock_init(&dl_b->lock);
|
||||||
raw_spin_lock(&def_dl_bandwidth.dl_runtime_lock);
|
|
||||||
if (global_rt_runtime() == RUNTIME_INF)
|
if (global_rt_runtime() == RUNTIME_INF)
|
||||||
dl_b->bw = -1;
|
dl_b->bw = -1;
|
||||||
else
|
else
|
||||||
dl_b->bw = to_ratio(global_rt_period(), global_rt_runtime());
|
dl_b->bw = to_ratio(global_rt_period(), global_rt_runtime());
|
||||||
raw_spin_unlock(&def_dl_bandwidth.dl_runtime_lock);
|
|
||||||
dl_b->total_bw = 0;
|
dl_b->total_bw = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2731,9 +2727,6 @@ void sched_dl_do_global(void)
|
||||||
int cpu;
|
int cpu;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
def_dl_bandwidth.dl_period = global_rt_period();
|
|
||||||
def_dl_bandwidth.dl_runtime = global_rt_runtime();
|
|
||||||
|
|
||||||
if (global_rt_runtime() != RUNTIME_INF)
|
if (global_rt_runtime() != RUNTIME_INF)
|
||||||
new_bw = to_ratio(global_rt_period(), global_rt_runtime());
|
new_bw = to_ratio(global_rt_period(), global_rt_runtime());
|
||||||
|
|
||||||
|
|
|
@ -2333,7 +2333,6 @@ extern void resched_cpu(int cpu);
|
||||||
extern struct rt_bandwidth def_rt_bandwidth;
|
extern struct rt_bandwidth def_rt_bandwidth;
|
||||||
extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime);
|
extern void init_rt_bandwidth(struct rt_bandwidth *rt_b, u64 period, u64 runtime);
|
||||||
|
|
||||||
extern struct dl_bandwidth def_dl_bandwidth;
|
|
||||||
extern void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime);
|
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_task_timer(struct sched_dl_entity *dl_se);
|
||||||
extern void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se);
|
extern void init_dl_inactive_task_timer(struct sched_dl_entity *dl_se);
|
||||||
|
|
Loading…
Reference in New Issue