lkml.org 
[lkml]   [2020]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] timers: Recalculate next timer interrupt only when necessary
On Thu, Jul 23, 2020 at 03:53:32PM +0200, Thomas Gleixner wrote:
> Frederic Weisbecker <frederic@kernel.org> writes:
> >
> > Since recalculating the next_expiry isn't a free operation, especially
> > when we must climb up the last wheel level to find out that no timer
> > has
>
> I'm climbing stairs or mountains :)

Arguably, climbing a wheel can be a never ending story :)

>
> > been enqueued at all, lets reuse the next expiry cache when it is
> > known
>
> lets? Come on, the changelog is about facts not what we might do.

Also since you applied the last patchset I have tried to quit using "we"
in the changelog and use "the code" as a subject or even the passive form.
But reading above, I did it again.

Too many habits :))

>
> > unsigned long clk;
> > unsigned long next_expiry;
> > + bool next_expiry_recalc;
> > unsigned int cpu;
> > bool is_idle;
>
> Care to stare at the output of
>
> pahole -C timer_base kernel/time/timer.o
>
> before and after?

Ah right, I'll move the bool together.

Thanks.

\
 
 \ /
  Last update: 2020-07-23 16:46    [W:0.046 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site