diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-31 13:08:33 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-10 09:22:09 +0100 |
commit | 05ca53ddf6bc8333c2f3ad861c5415467c3262d2 (patch) | |
tree | 9b011af47a8304527c77ba8992418e473f540ecf /cpukit/score/src/threadinitialize.c | |
parent | score: Add and use Thread_Control::is_idle (diff) | |
download | rtems-05ca53ddf6bc8333c2f3ad861c5415467c3262d2.tar.bz2 |
rtems: Add scheduler processor add/remove
Update #2797.
Diffstat (limited to 'cpukit/score/src/threadinitialize.c')
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 16c225e929..2cbe13854c 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -190,7 +190,14 @@ bool _Thread_Initialize( priority_for_index = priority; scheduler_node = scheduler_node_for_index; } else { - priority_for_index = 0; + /* + * Use the idle thread priority for the non-home scheduler instances by + * default. + */ + priority_for_index = _Scheduler_Map_priority( + scheduler_for_index, + scheduler_for_index->maximum_priority + ); } _Scheduler_Node_initialize( |