summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-23 06:01:56 (UTC)
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-23 08:46:36 (UTC)
commit5323247c3148a22baefb1590533972c401f7d745 (patch)
treeafc55c190b06dd0d58b0417b730630748f71ce53
parent30e5e765408ccddc82394c5dc4e44c1732b74c46 (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 d222465..7d164f3 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