summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/scheduleredfyield.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-19 16:09:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-21 12:58:45 +0100
commiteea7c937066a9ff760429c3f1170d72925745535 (patch)
treed8fc45e8437f9928b65cc8a7aeb9d842e73aea8b /cpukit/score/src/scheduleredfyield.c
parentselect.h, rtems_select.c, nds select: Add restrict keyword (diff)
downloadrtems-eea7c937066a9ff760429c3f1170d72925745535.tar.bz2
scheduler/EDF: Use unprotected insert and extract
Interrupts are disabled by the caller _Thread_Change_priority() or _Thread_Set_transient() or directly in the scheduler operation. Thus there is no need to use protected variants.
Diffstat (limited to 'cpukit/score/src/scheduleredfyield.c')
-rw-r--r--cpukit/score/src/scheduleredfyield.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/scheduleredfyield.c b/cpukit/score/src/scheduleredfyield.c
index fc5b13a7a0..4a80168ab4 100644
--- a/cpukit/score/src/scheduleredfyield.c
+++ b/cpukit/score/src/scheduleredfyield.c
@@ -35,8 +35,8 @@ void _Scheduler_EDF_Yield( Thread_Control *thread )
* The RBTree has more than one node, enqueue behind the tasks
* with the same priority in case there are such ones.
*/
- _RBTree_Extract( &_Scheduler_EDF_Ready_queue, thread_node );
- _RBTree_Insert( &_Scheduler_EDF_Ready_queue, thread_node );
+ _RBTree_Extract_unprotected( &_Scheduler_EDF_Ready_queue, thread_node );
+ _RBTree_Insert_unprotected( &_Scheduler_EDF_Ready_queue, thread_node );
_ISR_Flash( level );