lkml.org 
[lkml]   [2009]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 3/3] xtensa: ccount clocksource
From
Date
On Tue, 2009-03-03 at 16:30 +0100, Johannes Weiner wrote:
> @ -29,6 +30,19 @@ unsigned long ccount_per_jiffy; /* per
> unsigned long nsec_per_ccount; /* nsec per ccount increment
> */
> #endif
>
> +static cycle_t ccount_read(void)
> +{
> + return (cycle_t)get_ccount();
> +}
> +
> +static struct clocksource ccount_clocksource = {
> + .name = "ccount",
> + .rating = 200,
> + .read = ccount_read,
> + .mask = CLOCKSOURCE_MASK(32),
> + .mult = NSEC_PER_CCOUNT,
> +};

You don't want to use the shift field?

Daniel



\
 
 \ /
  Last update: 2009-03-03 18:59    [W:0.075 / U:1.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site