From 196fe5964fc2ba43b0003607abf38657ad3badcf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Oct 2012 13:27:04 -0500 Subject: score/thread.h: Move Thread_CPU_usage_t definition down At the previous location, uint32_t was not available. --- cpukit/score/include/rtems/score/thread.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'cpukit/score/include/rtems/score') 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 - - typedef Timestamp_Control Thread_CPU_usage_t; -#else - typedef uint32_t Thread_CPU_usage_t; -#endif - #include #include #include @@ -100,6 +88,18 @@ extern "C" { #include #include +/* + * The user can define this at configure time and go back to ticks + * resolution. + */ +#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ + #include + + 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. * -- cgit v1.2.3