posix-cpu-timers: Rename thread_group_cputimer() and make it static
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:08:54 +0000 (21:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:27 +0000 (11:50 +0200)
commitc506bef424ca282f2ad357e86fee940c69018974
tree24b65df9ed51e78b36932be95a4849d00b632af3
parenta324956fae05d863386c682830e917f6685f1d4f
posix-cpu-timers: Rename thread_group_cputimer() and make it static

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>
Link: https://lkml.kernel.org/r/20190821192919.869350319@linutronix.de
include/linux/sched/cputime.h
kernel/time/posix-cpu-timers.c