From a5aaf20a2d25846c2bfe78e286550fed38d2c111 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 10 Aug 2021 15:07:35 +0200 Subject: score: Replace priority prepend it with an enum Use the new Priority_Group_order enum instead of a boolean to indicated if a priority should be inserted as the first or last node into its priority group. This makes the code more expressive. It is also a bit more efficient since a branch in _Scheduler_Node_set_priority() is avoided and a simple bitwise or operation can be used. --- cpukit/rtems/src/tasksetpriority.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c index 50d1bc156c..532848ea52 100644 --- a/cpukit/rtems/src/tasksetpriority.c +++ b/cpukit/rtems/src/tasksetpriority.c @@ -50,7 +50,7 @@ static rtems_status_code _RTEMS_tasks_Set_priority( the_thread, &the_thread->Real_priority, core_new_priority, - false, + PRIORITY_GROUP_LAST, queue_context ); cpu_self = _Thread_queue_Dispatch_disable( queue_context ); -- cgit v1.2.3