posix-cpu-timers: Restructure expiry array
authorThomas Gleixner <tglx@linutronix.de>
Mon, 26 Aug 2019 18:22:24 +0000 (20:22 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:39 +0000 (11:50 +0200)
commit87dc64480fb19a6a0fedbdff1e2557be50673287
treea3e0e5cc5769ecc2683bee0e8485a48436206a9e
parent46b883995c88520f2c4de6a64cccc04c69d59f83
posix-cpu-timers: Restructure expiry array

Now that the abused struct task_cputime is gone, it's more natural to
bundle the expiry cache and the list head of each clock into a struct and
have an array of those structs.

Follow the hrtimer naming convention of 'bases' and rename the expiry cache
to 'nextevt' and adapt all usage sites.

Generates also better code .text size shrinks by 80 bytes.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/alpine.DEB.2.21.1908262021140.1939@nanos.tec.linutronix.de
include/linux/posix-timers.h
kernel/time/posix-cpu-timers.c