lkml.org 
[lkml]   [2019]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch V2 07/38] posix-cpu-timers: Rename thread_group_cputimer() and make it static
On Wed, Aug 21, 2019 at 09:08:54PM +0200, Thomas Gleixner wrote:
> thread_group_cputimer() is a complete misnomer. The function does two things:
>
> - For arming process wide timers it makes sure that the atomic time
> storage is up to date. If no cpu timer is armed yet, then the atomic
> time storage is not updated by the scheduler for performance reasons.
>
> In that case a full summing up of all threads needs to be done and the
> update needs to be enabled.
>
> - Samples the current time into the caller supplied storage.
>
> Rename it to thread_group_start_cputime(), make it static and fixup the
> callsite.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Reviewed-by: Frederic Weisbecker <frederic@kernel.org>

\
 
 \ /
  Last update: 2019-08-22 14:42    [W:0.694 / U:70.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site