diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-30 14:08:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-07-01 11:51:49 +0200 |
commit | c0bd0064ac41f0602c0abfe494dbe140d7c5282f (patch) | |
tree | aaa200033234cf2d3833305f13565171521b0d26 /testsuites/smptests/smpmutex01 | |
parent | score: Workaround for #2751 (diff) | |
download | rtems-c0bd0064ac41f0602c0abfe494dbe140d7c5282f.tar.bz2 |
rtems: Fix rtems_task_set_scheduler() API
Task priorities are only valid within a scheduler instance. The
rtems_task_set_scheduler() directive moves a task from one scheduler
instance to another using the current priority of the thread. However,
the current task priority of the source scheduler instance is undefined
in the target scheduler instance. Add a third parameter to specify the
priority.
Close #2749.
Diffstat (limited to 'testsuites/smptests/smpmutex01')
-rw-r--r-- | testsuites/smptests/smpmutex01/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/smptests/smpmutex01/init.c b/testsuites/smptests/smpmutex01/init.c index b1381725ea..5adc2e2244 100644 --- a/testsuites/smptests/smpmutex01/init.c +++ b/testsuites/smptests/smpmutex01/init.c @@ -81,7 +81,7 @@ static void start_task( sc = rtems_scheduler_ident(scheduler, &scheduler_id); rtems_test_assert(sc == RTEMS_SUCCESSFUL); - sc = rtems_task_set_scheduler(ctx->tasks[id], scheduler_id); + sc = rtems_task_set_scheduler(ctx->tasks[id], scheduler_id, prio); rtems_test_assert(sc == RTEMS_SUCCESSFUL); sc = rtems_task_start(ctx->tasks[id], entry, id); |