summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-20 08:31:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-24 09:37:22 +0200
commit27cfe7c86ba0801f4961871869ec4e691ca694f3 (patch)
treec273dd3776caa064ea60f910411329369b66cc39 /cpukit/rtems
parentscore: Add _Thread_Add_timeout_ticks() (diff)
downloadrtems-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.c5
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;
}