summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/include/rtems/score/thread.h')
-rw-r--r--cpukit/score/include/rtems/score/thread.h6
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. */