From 4e553c606828c039cf768a8d45f7ce1d974611e5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 15 Mar 2011 14:52:32 +0000 Subject: 2011-03-15 Sebastian Huber * libmisc/cpuuse/cpuusagereport.c: Avoid assumptions on execution context. --- cpukit/ChangeLog | 5 +++++ cpukit/libmisc/cpuuse/cpuusagereport.c | 1 + 2 files changed, 6 insertions(+) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 21b940403f..0810421f46 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2011-03-15 Sebastian Huber + + * libmisc/cpuuse/cpuusagereport.c: Avoid assumptions on execution + context. + 2011-03-15 Chris Johns * libfs/src/rfs/rtems-rfs-rtems-file.c, diff --git a/cpukit/libmisc/cpuuse/cpuusagereport.c b/cpukit/libmisc/cpuuse/cpuusagereport.c index 2002987cdf..b7d0c99c9c 100644 --- a/cpukit/libmisc/cpuuse/cpuusagereport.c +++ b/cpukit/libmisc/cpuuse/cpuusagereport.c @@ -67,6 +67,7 @@ void rtems_cpu_usage_report_with_plugin( * guideline as to what each number means proportionally. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ + total = 0; uptime_at_last_reset = CPU_usage_Uptime_at_last_reset; #else for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { -- cgit v1.2.3