Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-30 Thread Ley Foon Tan
On Tue, Oct 28, 2014 at 11:15 PM, Thomas Gleixner wrote: > On Tue, 28 Oct 2014, Ley Foon Tan wrote: >> On Sel, 2014-10-28 at 10:23 +0100, Arnd Bergmann wrote: >> > On Tuesday 28 October 2014 10:46:29 Ley Foon Tan wrote: >> > > On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner >> > > wrote: >> > >

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-29 Thread Ley Foon Tan
On Tue, Oct 28, 2014 at 9:39 PM, Arnd Bergmann wrote: >> Hi Arnd, >> No problem, I can change that. But, seem that we don't need to have >> calibrate_delay_is_known() as well. We can just set "lpj_fine" variable, >> arm64 uses this. > > Right, that works too. Okay. > >> BTW, do you have further c

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-28 Thread Thomas Gleixner
On Tue, 28 Oct 2014, Ley Foon Tan wrote: > On Sel, 2014-10-28 at 10:23 +0100, Arnd Bergmann wrote: > > On Tuesday 28 October 2014 10:46:29 Ley Foon Tan wrote: > > > On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner > > > wrote: > > > > On Fri, 24 Oct 2014, Ley Foon Tan wrote: > > > >> +#ifndef _AS

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-28 Thread Arnd Bergmann
On Tuesday 28 October 2014 18:43:04 Ley Foon Tan wrote: > On Sel, 2014-10-28 at 10:23 +0100, Arnd Bergmann wrote: > > On Tuesday 28 October 2014 10:46:29 Ley Foon Tan wrote: > > > On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner > > > wrote: > > > > On Fri, 24 Oct 2014, Ley Foon Tan wrote: > > >

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-28 Thread Ley Foon Tan
On Sel, 2014-10-28 at 10:23 +0100, Arnd Bergmann wrote: > On Tuesday 28 October 2014 10:46:29 Ley Foon Tan wrote: > > On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner wrote: > > > On Fri, 24 Oct 2014, Ley Foon Tan wrote: > > >> +#ifndef _ASM_NIOS2_TIMEX_H > > >> +#define _ASM_NIOS2_TIMEX_H > > >>

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-28 Thread Arnd Bergmann
On Tuesday 28 October 2014 10:46:29 Ley Foon Tan wrote: > On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner 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

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-27 Thread Ley Foon Tan
On Sun, Oct 26, 2014 at 5:10 AM, Thomas Gleixner 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

Re: [PATCH v5 21/29] nios2: Time keeping

2014-10-25 Thread Thomas Gleixner
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