summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpscheduler03/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/smptests/smpscheduler03/test.c')
-rw-r--r--testsuites/smptests/smpscheduler03/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/smptests/smpscheduler03/test.c b/testsuites/smptests/smpscheduler03/test.c
index 32bd67cdc2..3f6b9e3fd8 100644
--- a/testsuites/smptests/smpscheduler03/test.c
+++ b/testsuites/smptests/smpscheduler03/test.c
@@ -37,6 +37,11 @@ static void apply_priority(
Thread_queue_Context *queue_context
)
{
+ const Scheduler_Control *scheduler;
+
+ scheduler = _Thread_Scheduler_get_home(thread);
+ new_priority = _Scheduler_Map_priority(scheduler, new_priority);
+
_Thread_queue_Context_initialize(queue_context);
_Thread_queue_Context_clear_priority_updates(queue_context);
_Thread_Wait_acquire(thread, queue_context);