lkml.org 
[lkml]   [2015]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/5] clocksource: st_lpc: Add LPC timer as a clocksource.
Hi Paul,

On Fri, 17 Apr 2015, Paul Bolle wrote:
> On Fri, 2015-04-17 at 11:50 +0100, Peter Griffin wrote:
> > --- a/drivers/clocksource/Kconfig
> > +++ b/drivers/clocksource/Kconfig
>
> > +config CLKSRC_ST_LPC_CLOCK
> > + bool
> > + depends on ARCH_STI
> > + select CLKSRC_OF if OF
> > + help
> > + Enable this option to use the Low Power controller timer
> > + as clock source.
> > +
> > +config CLKSRC_ST_LPC_TIMER_SCHED_CLOCK
> > + bool
> > + depends on ST_LPC_CLOCK
>
> It looks like you meant
> depends on CLKSRC_ST_LPC_CLOCK

Yes your correct, will fix in v2. I did a last minute change to append CLKSRC_,
and seem to have messed it up.

<snip>
> > --- /dev/null
> > +++ b/drivers/clocksource/st_lpc.c
>
> > +#ifdef CONFIG_CLKSRC_LPC_TIMER_SCHED_CLOCK
>
> #ifdef CONFIG_CLKSRC_ST_LPC_TIMER_SCHED_CLOCK here?
Yes, will fix in v2
>
> > +static u64 notrace st_lpc_sched_clock_read(void)
> > +{
> > + return st_lpc_counter_read();
> > +}
> > +#endif
>
> > +#ifdef CONFIG_CLKSRC_LPC_TIMER_SCHED_CLOCK
>
> Again, #ifdef CONFIG_CLKSRC_ST_LPC_TIMER_SCHED_CLOCK here?

Yes, will fix in v2
>
> > + sched_clock_register(st_lpc_sched_clock_read, 64, rate);
> > +#endif
>
> Assuming the above suggestions are correct: checkkconfigsymbols.py, as
> shipped in linux-next, helps detect stuff like this. See
> scripts/checkkconfigsymbols.py --help.

Thanks for the pointer to the script, I'd not heard of that before, so
will take a look.

Thanks for reviewing,

regards,

Peter.


\
 
 \ /
  Last update: 2015-04-20 09:21    [W:0.068 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site