forked from Imagelibrary/rtems
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:
@@ -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.
|
||||
|
||||
@@ -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" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user