This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] hp-timing for ppc32/64


On Mon, 2005-10-10 at 17:18 -0500, Steve Munroe wrote:

> This patch adds hp-timing for powerpc32 and powerpc64.

A couple of questions here:

 - Do you have any provision to deal with ppc32 CPUs that do not provide
the TB but different timing mecanisms ? Should we add a CPU feature bit
exposed by the kernel to userland ?

 - I haven't read/found the hp-timing spec yet, but are we supposed to
be able to convert between hp-timing values/diffs & actual time units
(like nanoseconds or so) ? That would require to know the TB calibration
values, which is currently not exposed by the kernel in any way you are
supposed to use in userland afaik. I could add a vDSO entry point for
that though (and to a ppc32 vDSO which will happen soon).

Cheers,
Ben.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]