diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 09:14:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 09:53:25 +0200 |
commit | d5ef7ae2a36bee532702d609f1dbb209cc47dd29 (patch) | |
tree | fe23444d0b02c06e7447ab169c88f7a16258bf5f /cpukit/score/src/threadinitialize.c | |
parent | score: Move _Thread_Dispatch_if_necessary() (diff) | |
download | rtems-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.c | 4 |
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; |