diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-10 21:30:26 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-11 08:58:40 +0200 |
commit | be0366bb62ed4a804725a484ffd73242cd4f1d7b (patch) | |
tree | 4267cd07e8e1134284ec145280f8197480aa55b7 /cpukit/score/include/rtems/score/mrspimpl.h | |
parent | mrm332-testsuite.tcfg: Add fileio (diff) | |
download | rtems-be0366bb62ed4a804725a484ffd73242cd4f1d7b.tar.bz2 |
score: Fix scheduler helping protocol
Account for priority changes of threads executing in a foreign
partition. Exchange idle threads in case a victim node uses an idle
thread and the new scheduled node needs an idle thread.
Diffstat (limited to 'cpukit/score/include/rtems/score/mrspimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/mrspimpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/mrspimpl.h b/cpukit/score/include/rtems/score/mrspimpl.h index c1e05e4c96..c40f41f716 100644 --- a/cpukit/score/include/rtems/score/mrspimpl.h +++ b/cpukit/score/include/rtems/score/mrspimpl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 embedded brains GmbH. All rights reserved. + * Copyright (c) 2014-2015 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -230,7 +230,7 @@ RTEMS_INLINE_ROUTINE MRSP_Status _MRSP_Obtain( ) { MRSP_Status status; - const Scheduler_Control *scheduler = _Scheduler_Get( executing ); + const Scheduler_Control *scheduler = _Scheduler_Get_own( executing ); uint32_t scheduler_index = _Scheduler_Get_index( scheduler ); Priority_Control initial_priority = executing->current_priority; Priority_Control ceiling_priority = |