[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 03 Mar 2009 09:55:45 -0800
From: Daniel Walker <dwalker@...o99.com>
To: Johannes Weiner <jw@...ix.com>
Cc: Chris Zankel <chris@...kel.net>, linux-kernel@...r.kernel.org,
Johannes Weiner <hannes@...xchg.org>
Subject: Re: [patch 3/3] xtensa: ccount clocksource
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists