diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-20 08:31:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-24 09:37:22 +0200 |
commit | 27cfe7c86ba0801f4961871869ec4e691ca694f3 (patch) | |
tree | c273dd3776caa064ea60f910411329369b66cc39 /cpukit/rtems | |
parent | score: Add _Thread_Add_timeout_ticks() (diff) | |
download | rtems-27cfe7c86ba0801f4961871869ec4e691ca694f3.tar.bz2 |
score: Add _Watchdog_Ticks_per_second
This value is frequently used. Avoid the function call overhead and the
integer division at run-time.
Update #3117.
Update #3182.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/clockgettickspersecond.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/rtems/src/clockgettickspersecond.c b/cpukit/rtems/src/clockgettickspersecond.c index f49c91cbd3..a2f78eb627 100644 --- a/cpukit/rtems/src/clockgettickspersecond.c +++ b/cpukit/rtems/src/clockgettickspersecond.c @@ -19,11 +19,8 @@ #endif #include <rtems/rtems/clock.h> -#include <rtems/score/todimpl.h> -#include <rtems/config.h> rtems_interval rtems_clock_get_ticks_per_second(void) { - return TOD_MICROSECONDS_PER_SECOND / - rtems_configuration_get_microseconds_per_tick(); + return _Watchdog_Ticks_per_second; } |