diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-10 22:13:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-10 22:13:28 +0000 |
commit | 9dc2c8d16e3d54daeb394d71b2455da114bbd5c9 (patch) | |
tree | 7e70e439c02af44198c2c9d3f1d490e865ae2ab9 /cpukit/rtems/include/rtems/rtems/types.h | |
parent | 2008-12-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-9dc2c8d16e3d54daeb394d71b2455da114bbd5c9.tar.bz2 |
2008-12-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/types.h')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/types.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/types.h b/cpukit/rtems/include/rtems/rtems/types.h index a0633e16a9..6178abf130 100644 --- a/cpukit/rtems/include/rtems/rtems/types.h +++ b/cpukit/rtems/include/rtems/rtems/types.h @@ -102,6 +102,19 @@ typedef Heap_Information_block region_information_block; typedef Watchdog_Interval rtems_interval; /** + * This is the public type used to represent the CPU usage per thread. + * + * @note When using nanosecond granularity timing, RTEMS may internally + * use a variety of represenations. + */ +#ifndef __RTEMS_USE_TICKS_CPU_USAGE_STATISTICS__ + typedef struct timespec rtems_thread_cpu_usage_t; +#else + typedef uint32_t Thread_CPU_usage_t; +#endif + + +/** * The following record defines the time of control block. This * control block is used to maintain the current time of day. * |