diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-08-30 18:12:13 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-01 21:23:16 +0200 |
commit | 25b0fddad9b3dad27eca0228fb4d7ba45ec459df (patch) | |
tree | 77e7a2c7eb25e9d73730b741d18144be3a81bcac /cpukit/score/src/threadchangepriority.c | |
parent | score: Remove _Thread_queue_Unblock_critical() (diff) | |
download | rtems-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 '')
-rw-r--r-- | cpukit/score/src/threadchangepriority.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index ac2e9a6d0c..613d0cd7af 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -212,7 +212,7 @@ void _Thread_Priority_perform_actions( */ the_thread = start_of_path; - update_count = _Thread_queue_Context_save_priority_updates( queue_context ); + update_count = _Thread_queue_Context_get_priority_updates( queue_context ); while ( true ) { Thread_queue_Queue *queue; |