Ignore:
Timestamp:
Dec 2, 2009, 6:15:16 PM (12 years ago)
Author:
Glenn Humphrey <glenn.humphrey@…>
Branches:
4.10, 4.11, 5, master
Children:
dca9a82
Parents:
97abdd2
Message:

2009-12-02 Glenn Humphrey <glenn.humphrey@…>

  • configure.ac, libcsupport/src/times.c, libmisc/cpuuse/cpuusagedata.c, libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c, rtems/include/rtems/rtems/ratemon.h, rtems/include/rtems/rtems/types.h, rtems/src/ratemongetstatistics.c, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, rtems/src/ratemonreportstatistics.c, score/include/rtems/score/thread.h, score/src/threaddispatch.c, score/src/threadinitialize.c, score/src/threadtickletimeslice.c: Changed the configuration of statistics granularity to use just one define.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/cpuuse/cpuusagereset.c

    r97abdd2 rc6f7e060  
    2929)
    3030{
    31   #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
     31  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    3232    _Timestamp_Set_to_zero( &the_thread->cpu_time_used );
    3333  #else
     
    3636}
    3737
    38 
    3938/*
    4039 * External data that is shared by cpu usage code but not declared in .h files.
    4140 */
    42 #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
     41#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    4342  extern Timestamp_Control CPU_usage_Uptime_at_last_reset;
    4443#else
     
    5150void rtems_cpu_usage_reset( void )
    5251{
    53   #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
     52  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    5453    _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset );
    5554    _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
Note: See TracChangeset for help on using the changeset viewer.