]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2f05370a3585319a90987b0426ef7bc0b8f53e4
tree24b65df9ed51e78b36932be95a4849d00b632af3
parent40f7e2eb99d3d044d5d55a500af3da07fb9839ed
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