diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-02 13:27:04 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-02 13:27:04 -0500 |
commit | 196fe5964fc2ba43b0003607abf38657ad3badcf (patch) | |
tree | da1d37f07d430f35307b94aa723bcaa884806928 /cpukit/score/include/rtems/score/thread.h | |
parent | score/percpu.h: _Thread_Time_of_last_context_switch always available (diff) | |
download | rtems-196fe5964fc2ba43b0003607abf38657ad3badcf.tar.bz2 |
score/thread.h: Move Thread_CPU_usage_t definition down
At the previous location, uint32_t was not available.
Diffstat (limited to 'cpukit/score/include/rtems/score/thread.h')
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 18ce1e3acd..e5de3e928c 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -73,18 +73,6 @@ extern "C" { #endif -/* - * The user can define this at configure time and go back to ticks - * resolution. - */ -#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - #include <rtems/score/timestamp.h> - - typedef Timestamp_Control Thread_CPU_usage_t; -#else - typedef uint32_t Thread_CPU_usage_t; -#endif - #include <rtems/score/percpu.h> #include <rtems/score/context.h> #include <rtems/score/cpu.h> @@ -100,6 +88,18 @@ extern "C" { #include <rtems/score/tqdata.h> #include <rtems/score/watchdog.h> +/* + * The user can define this at configure time and go back to ticks + * resolution. + */ +#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ + #include <rtems/score/timestamp.h> + + typedef Timestamp_Control Thread_CPU_usage_t; +#else + typedef uint32_t Thread_CPU_usage_t; +#endif + /** * The following defines the "return type" of a thread. * |