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

Ryan S. Arnold ryan.arnold@gmail.com
Mon Jun 4 19:04:00 GMT 2012


On Wed, May 30, 2012 at 9:09 AM, 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-05-11 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 (Contributors): Update @node pointers.
>        * manual/maint.texi (Maintenance): Likewise.
>        (Platform): New node.
>        * manual/platform.texi: New file.  Document the new features.


Per Roland's previous approval and Carlos O'Donnel's blessing this has
been pushed upstream for the GLIBC 2.16 release with git commit
d9dc34cd569bcfe714fe8c708e58c028106e8b2e



More information about the Libc-alpha mailing list