diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-07-05 13:37:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-07-27 10:55:30 +0200 |
commit | 3a58dc863157bb21054a144c1a21b690544c0d23 (patch) | |
tree | 254e87635343490eca3a41d34a6da2609b29e6d7 /cpukit/score/src/threadchangepriority.c | |
parent | score: Simplify _Thread_queue_Boost_priority() (diff) | |
download | rtems-3a58dc863157bb21054a144c1a21b690544c0d23.tar.bz2 |
score: Priority inherit thread queue operations
Move the priority change due to priority interitance to the thread queue
enqueue operation to simplify the locking on SMP configurations.
Update #2412.
Update #2556.
Update #2765.
Diffstat (limited to 'cpukit/score/src/threadchangepriority.c')
-rw-r--r-- | cpukit/score/src/threadchangepriority.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index d895ee6dbe..e3cf4a165a 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -142,40 +142,6 @@ void _Thread_Raise_priority( ); } -#if defined(RTEMS_SMP) -static bool _Thread_Inherit_priority_filter( - Thread_Control *inheritor, - Priority_Control *new_priority, - void *arg -) -{ - Thread_Control *ancestor = arg; - - if ( _Scheduler_Get_own( inheritor ) == _Scheduler_Get_own( ancestor ) ) { - *new_priority = ancestor->current_priority; - } - - return _Thread_Priority_less_than( - inheritor->current_priority, - *new_priority - ); -} - -void _Thread_Inherit_priority( - Thread_Control *inheritor, - Thread_Control *ancestor -) -{ - _Thread_Change_priority( - inheritor, - PRIORITY_PSEUDO_ISR, - ancestor, - _Thread_Inherit_priority_filter, - false - ); -} -#endif - static bool _Thread_Restore_priority_filter( Thread_Control *the_thread, Priority_Control *new_priority, |