]> git.baikalelectronics.ru Git - kernel.git/commit
posix-cpu-timers: Provide quick sample function for itimer
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:08:51 +0000 (21:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:26 +0000 (11:50 +0200)
commit5f256eb45dbf865ebe5b06d5e93c82fcb101faf1
treec1c35ecaa0f7112b18ab202889d56a9f358e24c9
parent6e51cbfc9b96bb71c952bf4372d578590b5aa2ee
posix-cpu-timers: Provide quick sample function for itimer

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 <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190821192919.599658199@linutronix.de
include/linux/sched/cputime.h
kernel/time/posix-cpu-timers.c