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)
commit19298fbf453c90a6cf72288155f80c6f55e9139d
treec1c35ecaa0f7112b18ab202889d56a9f358e24c9
parente5a8b65b4cb2fe024b83bdec0424269949cc0a27
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