summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/scheduleredfunblock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-23 09:04:25 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-23 10:36:23 +0200
commit93f158f943a60d8109f54229529c9692b5f7e01f (patch)
tree7276c03105d437348a8fe9d2c4e4bd553ff0fe88 /cpukit/score/src/scheduleredfunblock.c
parentsmptests/smpmrsp01: Fix due to API changes (diff)
downloadrtems-93f158f943a60d8109f54229529c9692b5f7e01f.tar.bz2
score: Fix EDF no-preempt thread handling
Diffstat (limited to 'cpukit/score/src/scheduleredfunblock.c')
-rw-r--r--cpukit/score/src/scheduleredfunblock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/scheduleredfunblock.c b/cpukit/score/src/scheduleredfunblock.c
index 9f80fa9aea..0f04cb3b2d 100644
--- a/cpukit/score/src/scheduleredfunblock.c
+++ b/cpukit/score/src/scheduleredfunblock.c
@@ -53,7 +53,10 @@ Scheduler_Void_or_thread _Scheduler_EDF_Unblock(
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( priority < _Thread_Heir->current_priority ) {
- _Scheduler_Update_heir( the_thread, priority == PRIORITY_PSEUDO_ISR );
+ _Scheduler_Update_heir(
+ the_thread,
+ priority == ( SCHEDULER_EDF_PRIO_MSB | PRIORITY_PSEUDO_ISR )
+ );
}
SCHEDULER_RETURN_VOID_OR_NULL;