Changeset b0aefa4 in rtems


Ignore:
Timestamp:
Dec 4, 2008, 3:58:26 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
ed348c8
Parents:
f0a680b
Message:

2008-12-04 Joel Sherrill <joel.sherrill@…>

PR 1348/cpukit

  • rtems/src/ratemonperiod.c: Properly handle period statistics after cpu usage information is reset while a period is running.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf0a680b rb0aefa4  
     12008-12-04      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1348/cpukit
     4        * rtems/src/ratemonperiod.c: Properly handle period statistics after
     5        cpu usage information is reset while a period is running.
     6
    172008-12-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • cpukit/rtems/src/ratemonperiod.c

    rf0a680b rb0aefa4  
    7474      /* Grab CPU usage when the thread got switched in */
    7575      used = _Thread_Executing->cpu_time_used;
     76
     77      /* partial period, cpu usage info reset while executing.  Throw away */
     78      if (_Timespec_Less_than( &used, &the_period->owner_executed_at_period))
     79        return;
    7680
    7781      /* How much time time since last context switch */
Note: See TracChangeset for help on using the changeset viewer.