summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-30 18:12:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-01 21:23:16 +0200
commit25b0fddad9b3dad27eca0228fb4d7ba45ec459df (patch)
tree77e7a2c7eb25e9d73730b741d18144be3a81bcac /cpukit/include
parentscore: Remove _Thread_queue_Unblock_critical() (diff)
downloadrtems-25b0fddad9b3dad27eca0228fb4d7ba45ec459df.tar.bz2
score: Update priority only if necessary
In _Thread_queue_Flush_critical(), update the priority of the thread queue owner only if necessary. The scheduler update priority operation could be expensive.
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/score/threadqimpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/include/rtems/score/threadqimpl.h b/cpukit/include/rtems/score/threadqimpl.h
index f42c67cc47..33cdb3058d 100644
--- a/cpukit/include/rtems/score/threadqimpl.h
+++ b/cpukit/include/rtems/score/threadqimpl.h
@@ -366,8 +366,8 @@ RTEMS_INLINE_ROUTINE void _Thread_queue_Context_clear_priority_updates(
*
* @return The priority update count of @a queue_context.
*/
-RTEMS_INLINE_ROUTINE size_t _Thread_queue_Context_save_priority_updates(
- Thread_queue_Context *queue_context
+RTEMS_INLINE_ROUTINE size_t _Thread_queue_Context_get_priority_updates(
+ const Thread_queue_Context *queue_context
)
{
return queue_context->Priority.update_count;