summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadinitialize.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-14 09:14:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-30 09:53:25 +0200
commitd5ef7ae2a36bee532702d609f1dbb209cc47dd29 (patch)
treefe23444d0b02c06e7447ab169c88f7a16258bf5f /cpukit/score/src/threadinitialize.c
parentscore: Move _Thread_Dispatch_if_necessary() (diff)
downloadrtems-d5ef7ae2a36bee532702d609f1dbb209cc47dd29.tar.bz2
smp: Delete _SMP_Request_other_cores_to_dispatch()
Use an event triggered unicast to inform remote processors about a necessary thread dispatch instead.
Diffstat (limited to 'cpukit/score/src/threadinitialize.c')
-rw-r--r--cpukit/score/src/threadinitialize.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index bd0031fa7c..a87614721a 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -181,7 +181,9 @@ bool _Thread_Initialize(
#if defined(RTEMS_SMP)
the_thread->is_scheduled = false;
the_thread->is_executing = false;
- the_thread->cpu = NULL;
+
+ /* Initialize the cpu field for the non-SMP schedulers */
+ the_thread->cpu = _Per_CPU_Get_by_index( 0 );
#endif
the_thread->current_state = STATES_DORMANT;