summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/ratemon.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-06 16:34:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-06 16:34:43 +0000
commitebfd9eaec6521f98c8c5547e6ea0a5f408f599d2 (patch)
treee3df69bf49ea2792ddf1e7a632b677248f64df24 /cpukit/rtems/include/rtems/rtems/ratemon.h
parent2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ebfd9eaec6521f98c8c5547e6ea0a5f408f599d2.tar.bz2
2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonperiod.c, score/include/rtems/score/thread.h: Complete previous patch. Add typedef for cpu usage statistics.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/ratemon.h')
-rw-r--r--cpukit/rtems/include/rtems/rtems/ratemon.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
index 3f990f28bd..cccf40dd9f 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemon.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
@@ -104,9 +104,10 @@ typedef enum {
typedef struct {
uint32_t count;
uint32_t missed_count;
- RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE min_cpu_time;
- RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE max_cpu_time;
- RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE total_cpu_time;
+
+ rtems_thread_cpu_usage_t min_cpu_time;
+ rtems_thread_cpu_usage_t max_cpu_time;
+ rtems_thread_cpu_usage_t total_cpu_time;
rtems_rate_monotonic_period_time_t min_wall_time;
rtems_rate_monotonic_period_time_t max_wall_time;
@@ -120,7 +121,7 @@ typedef struct {
Objects_Id owner;
rtems_rate_monotonic_period_states state;
rtems_rate_monotonic_period_time_t since_last_period;
- RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE executed_since_last_period;
+ rtems_thread_cpu_usage_t executed_since_last_period;
} rtems_rate_monotonic_period_status;
/**
@@ -131,7 +132,7 @@ typedef struct {
Objects_Control Object;
Watchdog_Control Timer;
rtems_rate_monotonic_period_states state;
- RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE owner_executed_at_period;
+ rtems_thread_cpu_usage_t owner_executed_at_period;
rtems_rate_monotonic_period_time_t time_at_period;
uint32_t next_length;
Thread_Control *owner;