Commit 6fab5410 authored by Zhiqiang Zhang's avatar Zhiqiang Zhang Committed by Ingo Molnar

sched/deadline: Remove needless parameter in dl_runtime_exceeded()

Sine commit 269ad801 ("sched/deadline: Avoid double-accounting in
case of missed deadlines), parameter 'rq' is no longer used, so
remove it.
Signed-off-by: default avatarZhiqiang Zhang <zhangzhiqiang.zhang@huawei.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: <juri.lelli@gmail.com>
Cc: <luca.abeni@unitn.it>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1434338120-43773-1-git-send-email-zhangzhiqiang.zhang@huawei.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 6713c3aa
...@@ -640,7 +640,7 @@ void init_dl_task_timer(struct sched_dl_entity *dl_se) ...@@ -640,7 +640,7 @@ void init_dl_task_timer(struct sched_dl_entity *dl_se)
} }
static static
int dl_runtime_exceeded(struct rq *rq, struct sched_dl_entity *dl_se) int dl_runtime_exceeded(struct sched_dl_entity *dl_se)
{ {
return (dl_se->runtime <= 0); return (dl_se->runtime <= 0);
} }
...@@ -684,7 +684,7 @@ static void update_curr_dl(struct rq *rq) ...@@ -684,7 +684,7 @@ static void update_curr_dl(struct rq *rq)
sched_rt_avg_update(rq, delta_exec); sched_rt_avg_update(rq, delta_exec);
dl_se->runtime -= dl_se->dl_yielded ? 0 : delta_exec; dl_se->runtime -= dl_se->dl_yielded ? 0 : delta_exec;
if (dl_runtime_exceeded(rq, dl_se)) { if (dl_runtime_exceeded(dl_se)) {
dl_se->dl_throttled = 1; dl_se->dl_throttled = 1;
__dequeue_task_dl(rq, curr, 0); __dequeue_task_dl(rq, curr, 0);
if (unlikely(!start_dl_timer(dl_se, curr->dl.dl_boosted))) if (unlikely(!start_dl_timer(dl_se, curr->dl.dl_boosted)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment