[PATCH] PowerPC - Add a faster way to read the Time Base register

tuliom@linux.vnet.ibm.com tuliom@linux.vnet.ibm.com
Fri Apr 27 14:17:00 GMT 2012


Quoting Carlos O'Donell <carlos@systemhalted.org>:

> On Tue, Apr 17, 2012 at 4:22 PM, Tulio Magno Quites Machado Filho
> <tuliom@linux.vnet.ibm.com> wrote:
>> Add function __ppc_get_timebase() to directly read the Time Base register.
>> This is required for applications that measure time at high frequencies
>> with high precision that can't afford a syscall.
>>
>> 2012-04-09 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
>>
>>        [BZ #13743]
>>        * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
>>        * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
>>        (sysdep_headers): Include sys/platform/ppc.h.
>>        * sysdeps/powerpc/test-gettimebase.c: Test for
>>        __ppc_get_timebase() to catch future ISA opcode/insn changes.
>>        * manual/Makefile (appendices): Include platform.texi.
>>        * manual/contrib.texi: Likewise.
>>        * manual/maint.texi: Document how to include platform-specific
>>        headers.
>>        * manual/platform.texi: New file. Document the new features.
>
> Tulio,
>
> Have you given any consideration to contributing a manual page for
> this to the man-pages project?
>
> http://sourceware.org/glibc/wiki/Contribution%20checklist#Documentation

Yes. It's already on my task list.

Thank you,

--
Tulio Magno




More information about the Libc-alpha mailing list