On Tue, Aug 27, 2019 at 09:31:02PM +0200, Thomas Gleixner wrote: > Using a linear O(N) search for timer insertion affects execution time and > D-cache footprint badly with a larger number of timers. > > Switch the storage to a timerqueue which is already used for hrtimers and > alarmtimers. It does not affect the size of struct k_itimer as it.alarm is > still larger. > > The extra list head for the expiry list will go away later once the expiry > is moved into task work context. > > Signed-off-by: Thomas Gleixner <t...@linutronix.de> > --- > V2: Adopt to the per clock base struct > V3: Fixup memset() and clear cputtimer::head in cleanup_timerqueue()
Reviewed-by: Frederic Weisbecker <frede...@kernel.org>