diff options
Diffstat (limited to 'testsuites/tmtests/tm26/task1.c')
-rw-r--r-- | testsuites/tmtests/tm26/task1.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c index 925c2f501b..6325516561 100644 --- a/testsuites/tmtests/tm26/task1.c +++ b/testsuites/tmtests/tm26/task1.c @@ -371,7 +371,8 @@ rtems_task Middle_task( rtems_task_argument argument ) { - Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); + Scheduler_priority_Control *scheduler = + _Scheduler_priority_Self_from_base( _Scheduler_Get( NULL ) ); thread_dispatch_no_fp_time = benchmark_timer_read(); @@ -403,7 +404,8 @@ rtems_task Low_task( rtems_task_argument argument ) { - Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); + Scheduler_priority_Control *scheduler = + _Scheduler_priority_Self_from_base( _Scheduler_Get( NULL ) ); Thread_Control *executing; context_switch_no_fp_time = benchmark_timer_read(); @@ -445,7 +447,8 @@ rtems_task Floating_point_task_1( rtems_task_argument argument ) { - Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); + Scheduler_priority_Control *scheduler = + _Scheduler_priority_Self_from_base( _Scheduler_Get( NULL ) ); Thread_Control *executing; FP_DECLARE; @@ -500,7 +503,8 @@ rtems_task Floating_point_task_2( rtems_task_argument argument ) { - Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); + Scheduler_priority_Control *scheduler = + _Scheduler_priority_Self_from_base( _Scheduler_Get( NULL ) ); Thread_Control *executing; FP_DECLARE; |