* libmisc/cpuuse/cpuusagereport.c: Avoid assumptions on execution
	context.
This commit is contained in:
Sebastian Huber
2011-03-15 14:52:32 +00:00
parent 597624691b
commit 4e553c6068
2 changed files with 6 additions and 0 deletions

View File

@@ -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++ ) {