Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-07-04 Thread Ingo Molnar
* Peter Zijlstra wrote: > Argh, no... That code was perfectly fine. The new code otoh is > convoluted crap. > > It had the form: > > if (exception1) > deal with exception1 > > if (execption2) > deal with exception2 > > do normal stuff

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-07-04 Thread Ingo Molnar
* Peter Zijlstra wrote: > Argh, no... That code was perfectly fine. The new code otoh is > convoluted crap. > > It had the form: > > if (exception1) > deal with exception1 > > if (execption2) > deal with exception2 > > do normal stuff > > Which is as

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-07-04 Thread Peter Zijlstra
On Fri, Jun 30, 2017 at 06:10:35AM -0700, tip-bot for Gustavo A. R. Silva wrote: > Commit-ID: 72298e5c92c50edd8cb7cfda4519483ce65fa166 > Gitweb: http://git.kernel.org/tip/72298e5c92c50edd8cb7cfda4519483ce65fa166 > Author: Gustavo A. R. Silva > AuthorDate: Thu, 29

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-07-04 Thread Peter Zijlstra
On Fri, Jun 30, 2017 at 06:10:35AM -0700, tip-bot for Gustavo A. R. Silva wrote: > Commit-ID: 72298e5c92c50edd8cb7cfda4519483ce65fa166 > Gitweb: http://git.kernel.org/tip/72298e5c92c50edd8cb7cfda4519483ce65fa166 > Author: Gustavo A. R. Silva > AuthorDate: Thu, 29 Jun 2017 13:41:28 -0500

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Stanislaw Gruszka
On Fri, Jun 30, 2017 at 06:10:35AM -0700, tip-bot for Gustavo A. R. Silva wrote: > diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c > index aea3135..67c70e2 100644 > --- a/kernel/sched/cputime.c > +++ b/kernel/sched/cputime.c > @@ -615,19 +615,13 @@ static void cputime_adjust(struct

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Stanislaw Gruszka
On Fri, Jun 30, 2017 at 06:10:35AM -0700, tip-bot for Gustavo A. R. Silva wrote: > diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c > index aea3135..67c70e2 100644 > --- a/kernel/sched/cputime.c > +++ b/kernel/sched/cputime.c > @@ -615,19 +615,13 @@ static void cputime_adjust(struct

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Frederic Weisbecker
On Fri, Jun 30, 2017 at 04:41:50PM +0200, Frans Klaver wrote: > On Fri, Jun 30, 2017 at 4:00 PM, Rik van Riel wrote: > > On Fri, 2017-06-30 at 06:10 -0700, tip-bot for Gustavo A. R. Silva > > wrote: > > > >> +++ b/kernel/sched/cputime.c > >> @@ -615,19 +615,13 @@ static void

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Frederic Weisbecker
On Fri, Jun 30, 2017 at 04:41:50PM +0200, Frans Klaver wrote: > On Fri, Jun 30, 2017 at 4:00 PM, Rik van Riel wrote: > > On Fri, 2017-06-30 at 06:10 -0700, tip-bot for Gustavo A. R. Silva > > wrote: > > > >> +++ b/kernel/sched/cputime.c > >> @@ -615,19 +615,13 @@ static void cputime_adjust(struct

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Frans Klaver
On Fri, Jun 30, 2017 at 4:00 PM, Rik van Riel wrote: > On Fri, 2017-06-30 at 06:10 -0700, tip-bot for Gustavo A. R. Silva > wrote: > >> +++ b/kernel/sched/cputime.c >> @@ -615,19 +615,13 @@ static void cputime_adjust(struct task_cputime >> *curr, >>* userspace. Once a

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Frans Klaver
On Fri, Jun 30, 2017 at 4:00 PM, Rik van Riel wrote: > On Fri, 2017-06-30 at 06:10 -0700, tip-bot for Gustavo A. R. Silva > wrote: > >> +++ b/kernel/sched/cputime.c >> @@ -615,19 +615,13 @@ static void cputime_adjust(struct task_cputime >> *curr, >>* userspace. Once a task gets some

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Rik van Riel
On Fri, 2017-06-30 at 06:10 -0700, tip-bot for Gustavo A. R. Silva wrote: > +++ b/kernel/sched/cputime.c > @@ -615,19 +615,13 @@ static void cputime_adjust(struct task_cputime > *curr, >    * userspace. Once a task gets some ticks, the monotonicy > code at >    * 'update' will ensure

Re: [tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread Rik van Riel
On Fri, 2017-06-30 at 06:10 -0700, tip-bot for Gustavo A. R. Silva wrote: > +++ b/kernel/sched/cputime.c > @@ -615,19 +615,13 @@ static void cputime_adjust(struct task_cputime > *curr, >    * userspace. Once a task gets some ticks, the monotonicy > code at >    * 'update' will ensure

[tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread tip-bot for Gustavo A. R. Silva
Commit-ID: 72298e5c92c50edd8cb7cfda4519483ce65fa166 Gitweb: http://git.kernel.org/tip/72298e5c92c50edd8cb7cfda4519483ce65fa166 Author: Gustavo A. R. Silva AuthorDate: Thu, 29 Jun 2017 13:41:28 -0500 Committer: Ingo Molnar CommitDate: Fri, 30

[tip:sched/core] sched/cputime: Refactor the cputime_adjust() code

2017-06-30 Thread tip-bot for Gustavo A. R. Silva
Commit-ID: 72298e5c92c50edd8cb7cfda4519483ce65fa166 Gitweb: http://git.kernel.org/tip/72298e5c92c50edd8cb7cfda4519483ce65fa166 Author: Gustavo A. R. Silva AuthorDate: Thu, 29 Jun 2017 13:41:28 -0500 Committer: Ingo Molnar CommitDate: Fri, 30 Jun 2017 09:37:59 +0200 sched/cputime: