Re: [RFC] new timeofday core subsystem (v.A1)

From: john stultz
Date: Wed Dec 08 2004 - 14:28:49 EST


On Wed, 2004-12-08 at 10:44, Christoph Lameter wrote:
> On Tue, 7 Dec 2004, john stultz wrote:
>
> > +struct timesource_t {
> > + char* name;
> > + int priority;
> > + enum {
> > + TIMESOURCE_FUNCTION,
> > + TIMESOURCE_MMIO_32,
> > + TIMESOURCE_MMIO_64
> > + } type;
> > + cycle_t (*read_fnct)(void);
> > + void* ptr;
> > + cycle_t mask;
> > + u32 mult;
> > + u32 shift;
> > +};
>
> Maybe add TIMESOURCE_CPU or so? How can one specify a time source in a
> cpu register?

Yea, for now its a function. I was thinking that get_cycles() could be
used as an arch independent way to do this.

Good suggestion!
Thanks!
-john

-
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/