smptests/smpmrsp01: Fix scheduler ids

This commit is contained in:
Christian Mauderer
2014-06-02 16:15:14 +02:00
committed by Sebastian Huber
parent 9553e7a60d
commit 1ee0d5f719

View File

@@ -866,11 +866,19 @@ static void Init(rtems_task_argument arg)
ctx->main_task_id = rtems_task_self();
for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
for (cpu_index = 0; cpu_index < 2; ++cpu_index) {
sc = rtems_scheduler_ident(cpu_index, &ctx->scheduler_ids[cpu_index]);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
}
for (cpu_index = 2; cpu_index < cpu_count; ++cpu_index) {
sc = rtems_scheduler_ident(
cpu_index / 2 + 1,
&ctx->scheduler_ids[cpu_index]
);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
}
test_mrsp_flush_error();
test_mrsp_initially_locked_error();
test_mrsp_nested_obtain_error();