2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>

* cpuuse/init.c: Do not delete the Init task. Leaving it suspended lets
	the CPU Usage Report include it. If it is deleted, the CPU time it
	had consumed is not listed later in the report.
This commit is contained in:
Joel Sherrill
2007-07-24 21:36:45 +00:00
parent 845c202a48
commit 6db3522085
2 changed files with 12 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/init.c: Do not delete the Init task. Leaving it suspended lets
the CPU Usage Report include it. If it is deleted, the CPU time it
had consumed is not listed later in the report.
2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* tztest/init.c: Build when using buffered test IO.

View File

@@ -100,6 +100,11 @@ rtems_task Init(
status = rtems_task_start( Task_id[ 3 ], Task_3, 0 );
directive_failed( status, "rtems_task_start of TA3" );
status = rtems_task_delete( RTEMS_SELF );
/*
* We suspend the Init task rather than delete it so it still
* shows up in CPU Usage Report. If we don't, the CPU Usage
* times will not add up to the time since last CPU Usage Reset.
*/
status = rtems_task_suspend( RTEMS_SELF );
directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
}