Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1340736

Re: [PATCH] sched/deadline: Always calculate end of period on sched_yield()

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject Re: [PATCH] sched/deadline: Always calculate end of period on sched_yield()
Date 2016-02-23 16:10 +0100
Message-ID <r5mL7-7at-11@gated-at.bofh.it> (permalink)
References <r1vai-5dV-11@gated-at.bofh.it> <r5kgi-5mq-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 23 Feb 2016 13:28:22 +0100
Peter Zijlstra <peterz@infradead.org> wrote:

> Would something like this make sense instead?

It works perfectly.

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Tested-by: Steven Rostedt <rostedt@goodmis.org>

Thanks!

-- Steve

> 
> It also retains the ->runtime while yielded, and would actually 'fix' a
> case where, when we call yield, we would have had a negative runtime
> after update_curr_dl().
> 
> The current code will 'gift' us extra runtime in that case.
> 
> ---

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] sched/deadline: Always calculate end of period on  sched_yield() Peter Zijlstra <peterz@infradead.org> - 2016-02-23 13:30 +0100
  Re: [PATCH] sched/deadline: Always calculate end of period on  sched_yield() Steven Rostedt <rostedt@goodmis.org> - 2016-02-23 14:20 +0100
  Re: [PATCH] sched/deadline: Always calculate end of period on  sched_yield() Steven Rostedt <rostedt@goodmis.org> - 2016-02-23 16:10 +0100
  [tip:sched/core] sched/deadline: Always calculate end of period on  sched_yield() tip-bot for Peter Zijlstra <tipbot@zytor.com> - 2016-02-29 12:20 +0100

csiph-web