summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/cpuuse/cpuusagereset.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-07-24 21:37:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-07-24 21:37:39 +0000
commit3462c3432604442c5535488dad080153322f7a18 (patch)
tree8c0e3c3f4aa7ebfcdf3677daa90e103ad41dbdb2 /cpukit/libmisc/cpuuse/cpuusagereset.c
parent2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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.c1
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;