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.
This commit is contained in:
Sebastian Huber
2014-09-23 07:57:56 +02:00
parent dadd7cd2fd
commit 30e5e76540

View File

@@ -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