Re: [patch 3/3] xtensa: ccount clocksource

From: Daniel Walker
Date: Tue Mar 03 2009 - 12:56:02 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/