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/include/rtems/score/threadimpl.h | |
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/include/rtems/score/threadimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/threadimpl.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 5323e2c85b..92968a2e8e 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -512,37 +512,6 @@ void _Thread_Raise_priority( ); /** - * @brief Inherit the priority of a thread. - * - * It changes the current priority of the inheritor thread to the current priority - * of the ancestor thread if it is higher than the current priority of the inheritor - * thread. In this case the inheritor thread is appended to its new priority group - * in its scheduler instance. - * - * On SMP configurations, the priority is changed to PRIORITY_PSEUDO_ISR in - * case the own schedulers of the inheritor and ancestor thread differ (priority - * boosting). - * - * @param[in] inheritor The thread to inherit the priority. - * @param[in] ancestor The thread to bequeath its priority to the inheritor - * thread. - */ -#if defined(RTEMS_SMP) -void _Thread_Inherit_priority( - Thread_Control *inheritor, - Thread_Control *ancestor -); -#else -RTEMS_INLINE_ROUTINE void _Thread_Inherit_priority( - Thread_Control *inheritor, - Thread_Control *ancestor -) -{ - _Thread_Raise_priority( inheritor, ancestor->current_priority ); -} -#endif - -/** * @brief Sets the current to the real priority of a thread. * * Sets the priority restore hint to false. |