summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-23 07:57:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-23 10:46:36 +0200
commit30e5e765408ccddc82394c5dc4e44c1732b74c46 (patch)
treeab116aea9abdea3198ecdb6838c3361d614c46c9
parentscore: Delete Thread_Wait_information::Block2n (diff)
downloadrtems-30e5e765408ccddc82394c5dc4e44c1732b74c46.tar.bz2
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.
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h2
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 2df961243b..15854d54aa 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