summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/ratemon.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-30 17:54:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-30 17:54:29 +0000
commit94d9beecf41191e96554dd9d12ffdbabe9cc54df (patch)
tree1ce488f0745b16c27db112b2b2761486576ce8f3 /cpukit/rtems/include/rtems/rtems/ratemon.h
parent2009-10-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-94d9beecf41191e96554dd9d12ffdbabe9cc54df.tar.bz2
2009-10-30 Glenn Humphrey <glenn.humphrey@oarcorp.com>
PR pr1462/cpukit * rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, rtems/src/ratemontimeout.c, score/include/rtems/score/thread.h: Fix bugs in rate monotonic statistics.
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/include/rtems/rtems/ratemon.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
index 925efda1a9..b3552e639a 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemon.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
@@ -3,7 +3,8 @@
*
* This include file contains all the constants, structures, and
* prototypes associated with the Rate Monotonic Manager. This manager
- * provides facilities to implement tasks which execute in a periodic fashion.
+ * provides facilities to implement threads which execute in a periodic
+ * fashion.
*
* Directives provided are:
*
@@ -14,7 +15,7 @@
* - obtain status information on a period
*/
-/* COPYRIGHT (c) 1989-2008.
+/* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -405,9 +406,9 @@ rtems_status_code rtems_rate_monotonic_period(
* @brief _Rate_monotonic_Timeout
*
* This routine is invoked when the period represented
- * by ID expires. If the task which owns this period is blocked
+ * 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 task is not waiting for 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.
*/
@@ -417,6 +418,19 @@ void _Rate_monotonic_Timeout(
);
/**
+ * @brief _Rate_monotonic_Initiate_statistics(
+ *
+ * This routine is invoked when a period is initiated via an explicit
+ * call to rtems_rate_monotonic_period for the period's first iteration
+ * or from _Rate_monotonic_Timeout for period iterations 2-n.
+ *
+ * @param[in] the_period points to the period being operated upon.
+ */
+void _Rate_monotonic_Initiate_statistics(
+ Rate_monotonic_Control *the_period
+);
+
+/**
* @brief _Rate_monotonic_Reset_wall_time_statistics
*
* This method resets the statistics information for a period instance.