]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd210f57d8c1505b5225e056f3c125975b8471457
tree52d46053d8cd5fb94ce2cf9338097b4e3b3c7296
parent2f7399d0cefb062eed1207e3f56d4a4ead7f5dcd
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