diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-18 08:36:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-04 13:36:10 +0100 |
commit | 03b900d3ed120ea919ea3eded7edbece3488cff3 (patch) | |
tree | 182781fc14fe15fd67caeb80e46f1c58495839c2 /cpukit/rtems/include/rtems/rtems/ratemonimpl.h | |
parent | score: Distribute clock tick to all online CPUs (diff) | |
download | rtems-03b900d3ed120ea919ea3eded7edbece3488cff3.tar.bz2 |
score: Replace watchdog handler implementation
Use a red-black tree instead of delta chains.
Close #2344.
Update #2554.
Update #2555.
Close #2606.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/ratemonimpl.h')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/ratemonimpl.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h index 490912eb21..f184c44ba9 100644 --- a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h +++ b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h @@ -129,19 +129,13 @@ RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_expired ( /** * @brief Rate Monotonic Timeout * - * This routine is invoked when the period represented - * by ID expires. If the thread which owns this period is blocked - * waiting for the period to expire, then it is readied and the - * period is restarted. If the owning thread is not waiting for the - * period to expire, then the period is placed in the EXPIRED - * state and not restarted. - * - * @param[in] id is the period id - */ -void _Rate_monotonic_Timeout( - rtems_id id, - void *ignored -); + * This routine is invoked when the period represented by the watchdog expires. + * If the thread which owns this period is blocked waiting for the period to + * expire, then it is readied and the period is restarted. If the owning thread + * is not waiting for the period to expire, then the period is placed in the + * EXPIRED state and not restarted. + */ +void _Rate_monotonic_Timeout( Watchdog_Control *watchdog ); /** * @brief _Rate_monotonic_Get_status( @@ -165,7 +159,7 @@ bool _Rate_monotonic_Get_status( ); /** - * @brief Initiate Rate Monotonic Statistics + * @brief Restart Rate Monotonic Period * * This routine is invoked when a period is initiated via an explicit * call to rtems_rate_monotonic_period for the period's first iteration @@ -173,7 +167,7 @@ bool _Rate_monotonic_Get_status( * * @param[in] the_period points to the period being operated upon. */ -void _Rate_monotonic_Initiate_statistics( +void _Rate_monotonic_Restart( Rate_monotonic_Control *the_period ); |