From 5323247c3148a22baefb1590533972c401f7d745 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 23 Sep 2014 08:01:56 +0200 Subject: 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. --- cpukit/score/cpu/m68k/rtems/score/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3