posix-cpu-timers: Make expiry checks array based
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:09:13 +0000 (21:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:38 +0000 (11:50 +0200)
commit001f7971433a53bb76443cd8f5827ca27b0bc8ca
tree52d46053d8cd5fb94ce2cf9338097b4e3b3c7296
parentb0d524f77956eec887b30732af1f5f98cbf62b9f
posix-cpu-timers: Make expiry checks array based

The expiry cache is an array indexed by clock ids. The new sample functions
allow to retrieve a corresponding array of samples.

Convert the fastpath expiry checks to make use of the new sample functions
and do the comparisons on the sample and the expiry array.

Make the check for the expiry array being zero array based as well.

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