]> git.baikalelectronics.ru Git - kernel.git/commit
itimers: Use quick sample function
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:08:52 +0000 (21:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:26 +0000 (11:50 +0200)
commitbaed678b3d91f920ac08e201a2675202bf2caf88
tree0e45f45b48c0db9dfbe61d0d06e0c485c6a1718e
parent5f256eb45dbf865ebe5b06d5e93c82fcb101faf1
itimers: Use quick sample function

get_itimer() locks sighand lock and checks whether the timer is already
expired. If it is not expired then the thread group cputime accounting is
already enabled. Use the sampling function not the one which is meant for
starting a timer.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190821192919.689713638@linutronix.de
kernel/time/itimer.c