summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-23 08:01:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-23 10:46:36 +0200
commit5323247c3148a22baefb1590533972c401f7d745 (patch)
treeafc55c190b06dd0d58b0417b730630748f71ce53
parentpowerpc: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC (diff)
downloadrtems-5323247c3148a22baefb1590533972c401f7d745.tar.bz2
m68k: 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/m68k/rtems/score/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/cpu/m68k/rtems/score/cpu.h b/cpukit/score/cpu/m68k/rtems/score/cpu.h
index d2224657eb..7d164f38cf 100644
--- a/cpukit/score/cpu/m68k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m68k/rtems/score/cpu.h
@@ -102,7 +102,7 @@ extern "C" {
#define CPU_STACK_GROWS_UP FALSE
#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (4)))
-#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