Changeset 196fe59 in rtems


Ignore:
Timestamp:
Oct 2, 2012, 6:27:04 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
8896c97
Parents:
9e735966
Message:

score/thread.h: Move Thread_CPU_usage_t definition down

At the previous location, uint32_t was not available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/thread.h

    r9e735966 r196fe59  
    7272#ifdef __cplusplus
    7373extern "C" {
    74 #endif
    75 
    76 /*
    77  *  The user can define this at configure time and go back to ticks
    78  *  resolution.
    79  */
    80 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    81   #include <rtems/score/timestamp.h>
    82 
    83   typedef Timestamp_Control Thread_CPU_usage_t;
    84 #else
    85   typedef uint32_t Thread_CPU_usage_t;
    8674#endif
    8775
     
    10088#include <rtems/score/tqdata.h>
    10189#include <rtems/score/watchdog.h>
     90
     91/*
     92 *  The user can define this at configure time and go back to ticks
     93 *  resolution.
     94 */
     95#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
     96  #include <rtems/score/timestamp.h>
     97
     98  typedef Timestamp_Control Thread_CPU_usage_t;
     99#else
     100  typedef uint32_t Thread_CPU_usage_t;
     101#endif
    102102
    103103/**
Note: See TracChangeset for help on using the changeset viewer.