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/libmisc/cpuuse/cpuusagereport.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/libmisc') 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