summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-08 07:59:04 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-09 07:25:09 +0100
commitaacc7a035f42437e909f823e85c74545c89a4124 (patch)
tree83c7835f4fc9804975fc258b4f0e66198980fa32 /cpukit/include
parentrtems: Deprecate region_information_block (diff)
downloadrtems-aacc7a035f42437e909f823e85c74545c89a4124.tar.bz2
rtems: Deprecate rtems_thread_cpu_usage_t
The rtems_thread_cpu_usage_t typedef as no corresponding API. It violates the POSIX namespace. A user can do nothing with it. Close #3593.
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/rtems/ratemon.h8
-rw-r--r--cpukit/include/rtems/rtems/types.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/include/rtems/rtems/ratemon.h b/cpukit/include/rtems/rtems/ratemon.h
index ca48a92983..eec5e48fea 100644
--- a/cpukit/include/rtems/rtems/ratemon.h
+++ b/cpukit/include/rtems/rtems/ratemon.h
@@ -120,11 +120,11 @@ typedef struct {
uint32_t missed_count;
/** This field contains the least amount of CPU time used in a period. */
- rtems_thread_cpu_usage_t min_cpu_time;
+ struct timespec min_cpu_time;
/** This field contains the highest amount of CPU time used in a period. */
- rtems_thread_cpu_usage_t max_cpu_time;
+ struct timespec max_cpu_time;
/** This field contains the total amount of wall time used in a period. */
- rtems_thread_cpu_usage_t total_cpu_time;
+ 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;
@@ -181,7 +181,7 @@ typedef struct {
* was last initiated. If the period is expired or has not been initiated,
* then this field has no meaning.
*/
- rtems_thread_cpu_usage_t executed_since_last_period;
+ struct timespec executed_since_last_period;
/** This is the count of postponed jobs of this period. */
uint32_t postponed_jobs_count;
diff --git a/cpukit/include/rtems/rtems/types.h b/cpukit/include/rtems/rtems/types.h
index d551fce213..bb98100ead 100644
--- a/cpukit/include/rtems/rtems/types.h
+++ b/cpukit/include/rtems/rtems/types.h
@@ -129,7 +129,7 @@ typedef Watchdog_Interval rtems_interval;
* When using nanoseconds granularity timing, RTEMS may internally use a
* variety of representations.
*/
-typedef struct timespec rtems_thread_cpu_usage_t;
+typedef struct timespec rtems_thread_cpu_usage_t RTEMS_DEPRECATED;
/**
* @brief Data structure to manage and manipulate calendar