From: "T.Zhou" <t1zhou@163.com>
To: juri.lelli@arm.com
Cc: linux-kernel@vger.kernel.org, t1zhou@163.com
Subject: [PATCH] sched/dl: Delete the argument flags of __dequeue_task_dl()
Date: Fri, 18 Nov 2016 14:36:29 +0800 [thread overview]
Message-ID: <20161118063629.GA5336@geo> (raw)
See @flags is not used there, so delete it.
Signed-off-by: T.Zhou <t1zhou@163.com>
---
kernel/sched/deadline.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index c61b461..f276a81 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -318,7 +318,7 @@ static inline void queue_pull_task(struct rq *rq)
#endif /* CONFIG_SMP */
static void enqueue_task_dl(struct rq *rq, struct task_struct *p, int flags);
-static void __dequeue_task_dl(struct rq *rq, struct task_struct *p, int flags);
+static void __dequeue_task_dl(struct rq *rq, struct task_struct *p);
static void check_preempt_curr_dl(struct rq *rq, struct task_struct *p,
int flags);
@@ -744,7 +744,7 @@ static void update_curr_dl(struct rq *rq)
throttle:
if (dl_runtime_exceeded(dl_se) || dl_se->dl_yielded) {
dl_se->dl_throttled = 1;
- __dequeue_task_dl(rq, curr, 0);
+ __dequeue_task_dl(rq, curr);
if (unlikely(dl_se->dl_boosted || !start_dl_timer(curr)))
enqueue_task_dl(rq, curr, ENQUEUE_REPLENISH);
@@ -962,7 +962,7 @@ static void enqueue_task_dl(struct rq *rq, struct task_struct *p, int flags)
enqueue_pushable_dl_task(rq, p);
}
-static void __dequeue_task_dl(struct rq *rq, struct task_struct *p, int flags)
+static void __dequeue_task_dl(struct rq *rq, struct task_struct *p)
{
dequeue_dl_entity(&p->dl);
dequeue_pushable_dl_task(rq, p);
@@ -971,7 +971,7 @@ static void __dequeue_task_dl(struct rq *rq, struct task_struct *p, int flags)
static void dequeue_task_dl(struct rq *rq, struct task_struct *p, int flags)
{
update_curr_dl(rq);
- __dequeue_task_dl(rq, p, flags);
+ __dequeue_task_dl(rq, p);
}
/*
--
2.7.3
reply other threads:[~2016-11-18 6:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161118063629.GA5336@geo \
--to=t1zhou@163.com \
--cc=juri.lelli@arm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).