[rtems commit] powerpc: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC

Sebastian Huber sebh at rtems.org
Tue Sep 23 08:42:48 UTC 2014


Module:    rtems
Branch:    master
Commit:    30e5e765408ccddc82394c5dc4e44c1732b74c46
Changeset: http://git.rtems.org/rtems/commit/?id=30e5e765408ccddc82394c5dc4e44c1732b74c46

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep 23 07:57:56 2014 +0200

powerpc: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC

Converting 64-bit nanoseconds values into the common struct timeval or
struct timespec formats requires a 64-bit division to get the seconds
value.  Performance analysis of high network loads revealed that this is
too costly on PowerPC.

---

 cpukit/score/cpu/powerpc/rtems/score/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 2df9612..15854d5 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -144,7 +144,7 @@ extern "C" {
 #define CPU_STRUCTURE_ALIGNMENT \
   __attribute__ ((aligned (PPC_STRUCTURE_ALIGNMENT)))
 
-#define CPU_TIMESTAMP_USE_INT64_INLINE TRUE
+#define CPU_TIMESTAMP_USE_STRUCT_TIMESPEC TRUE
 
 /*
  *  Define what is required to specify how the network to host conversion



More information about the vc mailing list