diff options
author | Dietmar Eggemann <dietmar.eggemann@arm.com> | 2020-06-03 10:03:03 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-06-15 14:10:01 +0200 |
commit | e3e76a6a04114ec95b0969cd026e8904c67b431b (patch) | |
tree | 9e2c599c5d9db56cb6bc9b51cc7b6b4015a7b2cc /kernel/sched/stop_task.c | |
parent | sched/core: Remove redundant 'preempt' param from sched_class->yield_to_task() (diff) | |
download | linux-e3e76a6a04114ec95b0969cd026e8904c67b431b.tar.xz linux-e3e76a6a04114ec95b0969cd026e8904c67b431b.zip |
sched/idle,stop: Remove .get_rr_interval from sched_class
The idle task and stop task sched_classes return 0 in this function.
The single call site in sched_rr_get_interval() calls
p->sched_class->get_rr_interval() only conditional in case it is
defined. Otherwise time_slice=0 will be used.
The deadline sched class does not define it. Commit a57beec5d427
("sched: Make sched_class::get_rr_interval() optional") introduced
the default time-slice=0 for sched classes which do not provide this
function.
So .get_rr_interval for idle and stop sched_class can be removed to
shrink the code a little.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200603080304.16548-4-dietmar.eggemann@arm.com
Diffstat (limited to '')
-rw-r--r-- | kernel/sched/stop_task.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/sched/stop_task.c b/kernel/sched/stop_task.c index 4c9e9975684f..3e50a6a8f1e5 100644 --- a/kernel/sched/stop_task.c +++ b/kernel/sched/stop_task.c @@ -102,12 +102,6 @@ prio_changed_stop(struct rq *rq, struct task_struct *p, int oldprio) BUG(); /* how!?, what priority? */ } -static unsigned int -get_rr_interval_stop(struct rq *rq, struct task_struct *task) -{ - return 0; -} - static void update_curr_stop(struct rq *rq) { } @@ -136,8 +130,6 @@ const struct sched_class stop_sched_class = { .task_tick = task_tick_stop, - .get_rr_interval = get_rr_interval_stop, - .prio_changed = prio_changed_stop, .switched_to = switched_to_stop, .update_curr = update_curr_stop, |