diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-29 09:43:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-10 10:38:45 +0200 |
commit | 709796209c88e6749320b3096df57f369c2d62be (patch) | |
tree | 072e7cd5cef37aad7404a02344724a4348602f35 /cpukit/rtems/src/scheduleraddprocessor.c | |
parent | score: Modify _Scheduler_Unblock() (diff) | |
download | rtems-709796209c88e6749320b3096df57f369c2d62be.tar.bz2 |
score: Add thread pin/unpin support
Add support to temporarily pin a thread to its current processor. This
may be used to access per-processor data structures in critical sections
with enabled thread dispatching, e.g. a pinned thread is allowed to
block.
Update #3508.
Diffstat (limited to 'cpukit/rtems/src/scheduleraddprocessor.c')
-rw-r--r-- | cpukit/rtems/src/scheduleraddprocessor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/scheduleraddprocessor.c b/cpukit/rtems/src/scheduleraddprocessor.c index 56d6811afd..243fb6c246 100644 --- a/cpukit/rtems/src/scheduleraddprocessor.c +++ b/cpukit/rtems/src/scheduleraddprocessor.c @@ -73,7 +73,7 @@ rtems_status_code rtems_scheduler_add_processor( _Assert( idle != NULL ); cpu->Scheduler.idle_if_online_and_unused = NULL; - idle->Scheduler.home = scheduler; + idle->Scheduler.home_scheduler = scheduler; idle->Start.initial_priority = idle_priority; scheduler_node = _Thread_Scheduler_get_node_by_index( idle, scheduler_index ); |