lkml.org 
[lkml]   [2007]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] x86: scale cyc_2_nsec according to CPU frequency

* Arjan van de Ven <arjan@infradead.org> wrote:

> > > > Firstly, we dont need the 'offset' anymore because cpu_clock()
> > > > maintains offsets itself.
> > >
> > > Yes, but a lower quality one. __update_rq_clock tries to
> > > compensate large jumping clocks with a jiffy resolution, while my
> > > offset arranges for a very smooth frequency transition.
> >
> > yes, but that would be easy to fix up via calling
> > sched_clock_idle_wakeup_event(0) when doing a frequency transition,
> > without burdening the normal sched_clock() codepath with the offset.
> > See the attached latest version.
>
> can this deal with dual/quad core where the frequency of one core
> changes if the sofware changes the frequency of the other core?

doesnt the notifier still get run on the target CPU?

Ingo


\
 
 \ /
  Last update: 2007-12-08 20:19    [W:2.061 / U:0.948 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site