summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threaddispatch.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-29 11:13:51 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-02 09:43:29 +0100
commitaaaedba9811c75fffed80b7818053457ad9c5f2f (patch)
treed355d84b7d3bfa0a338bb1c90430d844e7df0fe8 /cpukit/score/src/threaddispatch.c
parentposix: Use cleanup contexts on the stack (diff)
downloadrtems-aaaedba9811c75fffed80b7818053457ad9c5f2f.tar.bz2
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.
Diffstat (limited to 'cpukit/score/src/threaddispatch.c')
-rw-r--r--cpukit/score/src/threaddispatch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c
index 0c8298f15f..ecf6810716 100644
--- a/cpukit/score/src/threaddispatch.c
+++ b/cpukit/score/src/threaddispatch.c
@@ -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 );