Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578460
| From | Juri Lelli <juri.lelli@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] sched/deadline: Remove redundant code replenishing runtime |
| Date | 2017-02-10 14:50 +0100 |
| Message-ID | <t9jKh-41W-7@gated-at.bofh.it> (permalink) |
| References | <t9fGF-1x8-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
On 10/02/17 18:11, Byungchul Park wrote:
> For a task passing its deadline while !rq, it will be replenished
> in the following path because dl_se->deadline < rq_lock.
>
> enqueue_dl_entity(ENQUEUE_WAKEUP)
> update_dl_entity
>
> Therefore, code replenishing it in the timer callback in the case is
> unnecessary. This is not for enhancing performance but just for removing
> a redundant code.
>
> Signed-off-by: Byungchul Park <byungchul.park@lge.com>
> ---
> kernel/sched/deadline.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
> index 27737f3..9c77696 100644
> --- a/kernel/sched/deadline.c
> +++ b/kernel/sched/deadline.c
> @@ -624,10 +624,8 @@ static enum hrtimer_restart dl_task_timer(struct hrtimer *timer)
> * We can be both throttled and !queued. Replenish the counter
> * but do not enqueue -- wait for our wakeup to do that.
> */
> - if (!task_on_rq_queued(p)) {
> - replenish_dl_entity(dl_se, dl_se);
I think we actually want to replenish and set the next deadline at this
point of time, not the one that we get when the task will eventually wake up.
Best,
- Juri
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] sched/deadline: Remove redundant code replenishing runtime Byungchul Park <byungchul.park@lge.com> - 2017-02-10 10:30 +0100
Re: [PATCH] sched/deadline: Remove redundant code replenishing runtime Juri Lelli <juri.lelli@arm.com> - 2017-02-10 14:50 +0100
Re: [PATCH] sched/deadline: Remove redundant code replenishing runtime Byungchul Park <byungchul.park@lge.com> - 2017-02-13 03:40 +0100
Re: [PATCH] sched/deadline: Remove redundant code replenishing runtime Byungchul Park <byungchul.park@lge.com> - 2017-02-13 05:40 +0100
Re: [PATCH] sched/deadline: Remove redundant code replenishing runtime Juri Lelli <juri.lelli@arm.com> - 2017-02-13 16:30 +0100
csiph-web