From 30e5e765408ccddc82394c5dc4e44c1732b74c46 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 23 Sep 2014 07:57:56 +0200 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3