Re: [patch V2 04/38] posix-cpu-timers: Provide quick sample function for itimer

2019-08-22 Thread Frederic Weisbecker
On Wed, Aug 21, 2019 at 09:08:51PM +0200, Thomas Gleixner wrote: > get_itimer() needs a sample of the current thread group cputime. It invokes > thread_group_cputimer() - which is a misnomer. That function also starts > eventually the group cputime accouting which is bogus because the > accounting

[patch V2 04/38] posix-cpu-timers: Provide quick sample function for itimer

2019-08-21 Thread Thomas Gleixner
get_itimer() needs a sample of the current thread group cputime. It invokes thread_group_cputimer() - which is a misnomer. That function also starts eventually the group cputime accouting which is bogus because the accounting is already active when a timer is armed. Signed-off-by: Thomas Gleixner