lkml.org 
[lkml]   [2004]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] new timeofday core subsystem (v.A1)
From
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site