[rtems commit] rtems: Deprecate rtems_rate_monotonic_period_time_t

Sebastian Huber sebh at rtems.org
Fri Nov 9 06:26:19 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov  8 08:01:13 2018 +0100

rtems: Deprecate rtems_rate_monotonic_period_time_t

The rtems_rate_monotonic_period_time_t typedef as no corresponding API.
It violates the POSIX namespace.  A user can do nothing with it.

Close #3595.

---

 cpukit/include/rtems/rtems/ratemon.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpukit/include/rtems/rtems/ratemon.h b/cpukit/include/rtems/rtems/ratemon.h
index eec5e48..738dc52 100644
--- a/cpukit/include/rtems/rtems/ratemon.h
+++ b/cpukit/include/rtems/rtems/ratemon.h
@@ -66,7 +66,7 @@ extern "C" {
  */
 #include <rtems/score/timespec.h>
 
-typedef struct timespec rtems_rate_monotonic_period_time_t;
+typedef struct timespec rtems_rate_monotonic_period_time_t RTEMS_DEPRECATED;
 
 /**
  *  This is the internal type used for the rate monotonic timing
@@ -127,11 +127,11 @@ typedef struct {
   struct timespec total_cpu_time;
 
   /** This field contains the least amount of wall time used in a period. */
-  rtems_rate_monotonic_period_time_t   min_wall_time;
+  struct timespec min_wall_time;
   /** This field contains the highest amount of wall time used in a period. */
-  rtems_rate_monotonic_period_time_t   max_wall_time;
+  struct timespec max_wall_time;
   /** This field contains the total amount of CPU time used in a period. */
-  rtems_rate_monotonic_period_time_t   total_wall_time;
+  struct timespec total_wall_time;
 }  rtems_rate_monotonic_period_statistics;
 
 /**
@@ -174,7 +174,7 @@ typedef struct {
    *  was last initiated.  If the period is expired or has not been initiated,
    *  then this field has no meaning.
    */
-  rtems_rate_monotonic_period_time_t   since_last_period;
+  struct timespec                      since_last_period;
 
   /**
    *  This is the amount of CPU time that has been used since this period




More information about the vc mailing list