[rtems commit] score: Start thread dispatch profiling later

Sebastian Huber sebh at rtems.org
Mon Mar 24 07:25:02 UTC 2014


Module:    rtems
Branch:    master
Commit:    383b2d383dd1791a2bf924a1761eea6f5d802f38
Changeset: http://git.rtems.org/rtems/commit/?id=383b2d383dd1791a2bf924a1761eea6f5d802f38

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 24 07:54:16 2014 +0100

score: Start thread dispatch profiling later

We are not interested in the sequential boot time.

---

 cpukit/score/src/threadstartmultitasking.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cpukit/score/src/threadstartmultitasking.c b/cpukit/score/src/threadstartmultitasking.c
index 7a636ff..e170a0d 100644
--- a/cpukit/score/src/threadstartmultitasking.c
+++ b/cpukit/score/src/threadstartmultitasking.c
@@ -34,7 +34,6 @@ void _Thread_Start_multitasking( void )
    * _Per_CPU_Release().
    */
   _Per_CPU_Acquire( self_cpu );
-  _Profiling_Thread_dispatch_disable( self_cpu, 0 );
   self_cpu->thread_dispatch_disable_level = 1;
 #endif
 
@@ -70,9 +69,11 @@ void _Thread_Start_multitasking( void )
      _Context_Restore_fp( &heir->fp_context );
 #endif
 
+  _Profiling_Thread_dispatch_disable( self_cpu, 0 );
+
 #if defined(_CPU_Start_multitasking)
-    _CPU_Start_multitasking( &heir->Registers );
+  _CPU_Start_multitasking( &heir->Registers );
 #else
-    _CPU_Context_Restart_self( &heir->Registers );
+  _CPU_Context_Restart_self( &heir->Registers );
 #endif
 }




More information about the vc mailing list