From 9dc2c8d16e3d54daeb394d71b2455da114bbd5c9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 10 Dec 2008 22:13:28 +0000 Subject: 2008-12-10 Joel Sherrill * rtems/include/rtems/rtems/ratemon.h, rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, rtems/src/ratemonreportstatistics.c, score/include/rtems/score/thread.h, score/src/coretodgetuptime.c: Make all Thread and Period Statistics use publicly defined types. Do not leak the SuperCore Timestamp type through the APIs. --- cpukit/score/include/rtems/score/thread.h | 8 +++----- 1 file changed, 3 insertions(+), 5 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 ccdeb3df27..1f79b49f8b 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -46,10 +46,9 @@ extern "C" { */ #define RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS - typedef Timestamp_Control rtems_thread_cpu_usage_t; - + typedef Timestamp_Control Thread_CPU_usage_t; #else - typedef uint32_t rtems_thread_cpu_usage_t; + typedef uint32_t Thread_CPU_usage_t; #endif #include @@ -376,11 +375,10 @@ struct Thread_Control_struct { Thread_CPU_budget_algorithms budget_algorithm; /** This field is the method invoked with the budgeted time is consumed. */ Thread_CPU_budget_algorithm_callout budget_callout; - /** This field is the amount of CPU time consumed by this thread * since it was created. */ - rtems_thread_cpu_usage_t cpu_time_used; + 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