]> git.baikalelectronics.ru Git - kernel.git/commit
posix-cpu-timers: Provide array based sample functions
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:09:12 +0000 (21:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:38 +0000 (11:50 +0200)
commitac4614989db095d9fec0a70de9888373f3be2eec
tree3d12aa8c2f3c31437e13783851d20b0b04193c64
parent44ade111b9774d5ef151074263d555295ee33886
posix-cpu-timers: Provide array based sample functions

Instead of using task_cputime and doing the addition of utime and stime at
all call sites, it's way simpler to have a sample array which allows
indexed based checks against the expiry cache array.

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