forked from Imagelibrary/rtems
score: Minor _Thread_Dispatch() optimization
It is not necessary to load the executing thread control again after the context switch since it is an invariant of the executing thread.
This commit is contained in:
@@ -156,12 +156,11 @@ void _Thread_Dispatch( void )
|
||||
#endif
|
||||
|
||||
/*
|
||||
* We have to obtain these values again after the context switch since the
|
||||
* We have to obtain this value again after the context switch since the
|
||||
* heir thread may have migrated from another processor. Values from the
|
||||
* stack or non-volatile registers reflect the old execution environment.
|
||||
*/
|
||||
per_cpu = _Per_CPU_Get();
|
||||
executing = per_cpu->executing;
|
||||
|
||||
#if !defined( RTEMS_SMP )
|
||||
_ISR_Disable( level );
|
||||
|
||||
Reference in New Issue
Block a user