Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1703822

Re: update timer frequencies

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: update timer frequencies
Date 2017-08-04 11:40 +0200
Message-ID <uaHfk-5fr-3@gated-at.bofh.it> (permalink)
References <tjoSn-1MV-59@gated-at.bofh.it> <tjpY7-2BJ-37@gated-at.bofh.it> <uaEKt-3yD-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Aug 04, 2017 at 12:28:43PM +0530, Vineet Gupta wrote:

> The hardware is being changed and I had a couple of questions to help do it right:

Awesome ;-)

> 2. I'm not sure if the timer generating interrupts (periodic or oneshot)
> needs to be fed invariant fixed clk or dynamic core clk. Naively it should
> follow the core - but what happens to scheduled timers (say TCP timeouts):
> if this clk changes - they need to be canceled/updated. If it doesn't then
> the notion of timing is broken ? I'm likely not thinking this through
> correctly.

Please keep the timers on the very same clock as your clocksource.
clockevent and clocksource having different (and possibly) drifting
timelines is painful.

Having them on the same clock makes everything so much easier, since you
_know_ what time it is when they fire and won't have to recompute and
possibly rearm the timer.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: update timer frequencies Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2017-08-04 09:00 +0200
  Re: update timer frequencies Peter Zijlstra <peterz@infradead.org> - 2017-08-04 11:40 +0200

csiph-web