[rtems commit] arm: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC

Sebastian Huber sebh at rtems.org
Tue Nov 25 15:19:51 UTC 2014


Module:    rtems
Branch:    master
Commit:    46689a1ee1fe7a7b94d299ba4b92eb1bf1dea6f5
Changeset: http://git.rtems.org/rtems/commit/?id=46689a1ee1fe7a7b94d299ba4b92eb1bf1dea6f5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 25 15:42:56 2014 +0100

arm: 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 ARM.

---

 cpukit/score/cpu/arm/rtems/score/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h
index bc9bee3..900486b 100644
--- a/cpukit/score/cpu/arm/rtems/score/cpu.h
+++ b/cpukit/score/cpu/arm/rtems/score/cpu.h
@@ -149,7 +149,7 @@
 /* XXX Why 32? */
 #define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (32)))
 
-#define CPU_TIMESTAMP_USE_INT64_INLINE TRUE
+#define CPU_TIMESTAMP_USE_STRUCT_TIMESPEC TRUE
 
 /*
  * The interrupt mask disables only normal interrupts (IRQ).



More information about the vc mailing list