lkml.org 
[lkml]   [2014]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v5 21/29] nios2: Time keeping
Date
On Tuesday 28 October 2014 10:46:29 Ley Foon Tan wrote:
> On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Fri, 24 Oct 2014, Ley Foon Tan wrote:
> >> +#ifndef _ASM_NIOS2_TIMEX_H
> >> +#define _ASM_NIOS2_TIMEX_H
> >> +
> >> +typedef unsigned long cycles_t;
> >> +
> >> +extern cycles_t get_cycles(void);
> >> +
> >> +#define ARCH_HAS_READ_CURRENT_TIMER
> >
> > Why does NIOS need that? Does it have a hardware implementation
> > dependent clock frequency which needs to be calibrated at boot time?
> This is suggestion from Arnd to use read_current_timer instead of using
> expensive delay loop calibration during boot.

My mistake, sorry. I think the right way is to define
calibrate_delay_is_known() rather than read_current_timer(), I was
getting confused by the ARM implementation that does both.

Arnd


\
 
 \ /
  Last update: 2014-10-28 11:01    [W:0.070 / U:1.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site