diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-24 21:37:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-24 21:37:39 +0000 |
commit | 3462c3432604442c5535488dad080153322f7a18 (patch) | |
tree | 8c0e3c3f4aa7ebfcdf3677daa90e103ad41dbdb2 /cpukit/libmisc/cpuuse/cpuusagereset.c | |
parent | 2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-3462c3432604442c5535488dad080153322f7a18.tar.bz2 |
2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c,
score/src/timespecdivide.c: Fix various math and reporting bugs. Now
the time appears to be reported correctly and add up to what is
expected.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagereset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagereset.c b/cpukit/libmisc/cpuuse/cpuusagereset.c index 3f351b1c51..3acfd2c452 100644 --- a/cpukit/libmisc/cpuuse/cpuusagereset.c +++ b/cpukit/libmisc/cpuuse/cpuusagereset.c @@ -44,6 +44,7 @@ void rtems_cpu_usage_reset( void ) extern struct timespec CPU_usage_Uptime_at_last_reset; _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); + _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset; #else extern uint32_t CPU_usage_Ticks_at_last_reset; |