diff options
-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. * |