[PATCH] PowerPC - Add a faster way to read the Time Base register
Andreas Krebbel
krebbel@linux.vnet.ibm.com
Thu Jun 14 15:44:00 GMT 2012
On 05/30/2012 04:09 PM, 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.
This appears to have broken glibc build on s390:
LANGUAGE=C LC_ALL=C makeinfo -P /home/andreas/glibc/glibc-build/manual/
--output=/home/andreas/glibc/glibc-build/manual/libc.info libc.texinfo
/home/andreas/glibc/glibc/manual//contrib.texi:1: Prev reference to nonexistent node
`Platform' (perhaps incorrect sectioning?).
/home/andreas/glibc/glibc/manual//maint.texi:1: Next reference to nonexistent node
`Platform' (perhaps incorrect sectioning?).
makeinfo: Removing output file `/home/andreas/glibc/glibc-build/manual/libc.info' due to
errors; use --force to preserve.
make[2]: *** [/home/andreas/glibc/glibc-build/manual/libc.info] Error 1
make[2]: Leaving directory `/home/andreas/glibc/glibc/manual'
make[1]: *** [manual/subdir_install] Error 2
make[1]: Leaving directory `/home/andreas/glibc/glibc'
make: *** [install] Error 2
Fixed for me with:
diff --git a/manual/maint.texi b/manual/maint.texi
index e6fedcf..73aa2cc 100644
--- a/manual/maint.texi
+++ b/manual/maint.texi
@@ -105,7 +105,7 @@ This variable is used for secondary object files needed to build
@end table
@menu
-* Platform: Adding Platform-specific. Adding platform-specific
+* Platform:: Adding Platform-specific. Adding platform-specific
features.
@end menu
Bye,
-Andreas-
More information about the Libc-alpha
mailing list