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)
commitb0d524f77956eec887b30732af1f5f98cbf62b9f
tree3d12aa8c2f3c31437e13783851d20b0b04193c64
parentbbc9bae1e49bee9862c7f24101a728e73cd9f589
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