From ebfd9eaec6521f98c8c5547e6ea0a5f408f599d2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Jun 2008 16:34:43 +0000 Subject: 2008-06-06 Joel Sherrill * 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. --- cpukit/score/include/rtems/score/thread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/score/include/rtems/score/thread.h') 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 @@ -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. */ -- cgit v1.2.3