diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-06 16:34:43 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-06-06 16:34:43 +0000 |
commit | ebfd9eaec6521f98c8c5547e6ea0a5f408f599d2 (patch) | |
tree | e3df69bf49ea2792ddf1e7a632b677248f64df24 /cpukit/score/include/rtems/score/thread.h | |
parent | 2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-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/score/include/rtems/score/thread.h')
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index b863a1f111..fcfac01026 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -44,10 +44,10 @@ extern "C" { */ #define RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS - #define RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE struct timespec + typedef struct timespec rtems_thread_cpu_usage_t; #else - #define RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE uint32_t + typedef uint32_t rtems_thread_cpu_usage_t; #endif #include <rtems/score/context.h> @@ -349,7 +349,7 @@ struct Thread_Control_struct { /** This field is the amount of CPU time consumed by this thread * since it was created. */ - RTEMS_CPU_USAGE_STATISTICS_TIME_TYPE cpu_time_used; + rtems_thread_cpu_usage_t cpu_time_used; /** This field points to the Ready FIFO for this priority. */ Chain_Control *ready; /** This field contains precalculated priority map indices. */ |