[rtems commit] score/thread.h: Move Thread_CPU_usage_t definition down

Joel Sherrill joel at rtems.org
Tue Oct 2 18:24:55 UTC 2012


Module:    rtems
Branch:    master
Commit:    196fe5964fc2ba43b0003607abf38657ad3badcf
Changeset: http://git.rtems.org/rtems/commit/?id=196fe5964fc2ba43b0003607abf38657ad3badcf

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Oct  2 13:27:04 2012 -0500

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 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 18ce1e3..e5de3e9 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.
  *




More information about the vc mailing list