Re: [PATCH 3/3] cputime: Consolidate cputime adjustment code

2012-11-25 Thread Frederic Weisbecker
2012/11/25 Paul Gortmaker : >> --- a/include/linux/sched.h >> +++ b/include/linux/sched.h >> @@ -433,6 +433,11 @@ struct cpu_itimer { >> u32 incr_error; >> }; >> >> +struct cputime { >> + cputime_t utime; >> + cputime_t stime; >> +}; >> + > > Hi Frederic, > > This new struct cputime

Re: [PATCH 3/3] cputime: Consolidate cputime adjustment code

2012-11-25 Thread Paul Gortmaker
[[PATCH 3/3] cputime: Consolidate cputime adjustment code] On 23/11/2012 (Fri 15:21) Frederic Weisbecker wrote: > task_cputime_adjusted() and thread_group_cputime_adjusted() > essentially share the same code. They just don't use the same > source: > > * The first function u

Re: [PATCH 3/3] cputime: Consolidate cputime adjustment code

2012-11-25 Thread Paul Gortmaker
[[PATCH 3/3] cputime: Consolidate cputime adjustment code] On 23/11/2012 (Fri 15:21) Frederic Weisbecker wrote: task_cputime_adjusted() and thread_group_cputime_adjusted() essentially share the same code. They just don't use the same source: * The first function uses the cputime

Re: [PATCH 3/3] cputime: Consolidate cputime adjustment code

2012-11-25 Thread Frederic Weisbecker
2012/11/25 Paul Gortmaker paul.gortma...@windriver.com: --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -433,6 +433,11 @@ struct cpu_itimer { u32 incr_error; }; +struct cputime { + cputime_t utime; + cputime_t stime; +}; + Hi Frederic, This new struct

[PATCH 3/3] cputime: Consolidate cputime adjustment code

2012-11-23 Thread Frederic Weisbecker
task_cputime_adjusted() and thread_group_cputime_adjusted() essentially share the same code. They just don't use the same source: * The first function uses the cputime in the task struct and the previous adjusted snapshot that ensures monotonicity. * The second adds the cputime of all tasks in

[PATCH 3/3] cputime: Consolidate cputime adjustment code

2012-11-23 Thread Frederic Weisbecker
task_cputime_adjusted() and thread_group_cputime_adjusted() essentially share the same code. They just don't use the same source: * The first function uses the cputime in the task struct and the previous adjusted snapshot that ensures monotonicity. * The second adds the cputime of all tasks in