[PATCH] hp-timing for ppc32/64
Benjamin Herrenschmidt
benh@kernel.crashing.org
Wed Oct 12 00:15:00 GMT 2005
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.
More information about the Libc-alpha
mailing list