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]

Ping: [PATCH] PowerPC - Add a faster way to read the Time Baseregister


Ping?

On Fri, May 11, 2012 at 07:10:37PM -0300, Tulio Magno Quites Machado Filho 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.
> 
> ---
> 
> In this version I applied all the comments from Roland and Ryan.
> The most important, IMO, is the suggestion to remove the typedef
> __ppc_timebase. It's only using uint64_t now.
> 
> Roland,
> 
> I modified the menu entry in manual/maint.texi, but it isn't equal to
> what you suggested. Is that OK?
> 
> ---
>  manual/Makefile                    |    3 +-
>  manual/contrib.texi                |    2 +-
>  manual/maint.texi                  |   82 +++++++++++++++++++++++++++++++++++-
>  manual/platform.texi               |   32 ++++++++++++++
>  sysdeps/powerpc/Makefile           |    5 ++
>  sysdeps/powerpc/sys/platform/ppc.h |   50 ++++++++++++++++++++++
>  sysdeps/powerpc/test-gettimebase.c |   47 ++++++++++++++++++++
>  7 files changed, 218 insertions(+), 3 deletions(-)
>  create mode 100644 manual/platform.texi
>  create mode 100644 sysdeps/powerpc/sys/platform/ppc.h
>  create mode 100644 sysdeps/powerpc/test-gettimebase.c

-- 
Tulio Magno


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