From 2dd098a6359d9df132da09201ea0506c5389dc80 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 31 Oct 2016 08:33:11 +0100 Subject: score: Introduce Thread_Scheduler_control::home Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556. --- cpukit/rtems/src/semcreate.c | 4 ++-- cpukit/rtems/src/taskgetscheduler.c | 2 +- cpukit/rtems/src/tasksetpriority.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c index 77ecdd7688..c38e69f7ed 100644 --- a/cpukit/rtems/src/semcreate.c +++ b/cpukit/rtems/src/semcreate.c @@ -157,7 +157,7 @@ rtems_status_code rtems_semaphore_create( status = STATUS_SUCCESSFUL; break; case SEMAPHORE_VARIANT_MUTEX_PRIORITY_CEILING: - scheduler = _Scheduler_Get_own( executing ); + scheduler = _Thread_Scheduler_get_home( executing ); priority = _RTEMS_Priority_To_core( scheduler, priority_ceiling, &valid ); if ( valid ) { @@ -195,7 +195,7 @@ rtems_status_code rtems_semaphore_create( break; #if defined(RTEMS_SMP) case SEMAPHORE_VARIANT_MRSP: - scheduler = _Scheduler_Get_own( executing ); + scheduler = _Thread_Scheduler_get_home( executing ); priority = _RTEMS_Priority_To_core( scheduler, priority_ceiling, &valid ); if ( valid ) { diff --git a/cpukit/rtems/src/taskgetscheduler.c b/cpukit/rtems/src/taskgetscheduler.c index 869e0f540b..e874c3052d 100644 --- a/cpukit/rtems/src/taskgetscheduler.c +++ b/cpukit/rtems/src/taskgetscheduler.c @@ -46,7 +46,7 @@ rtems_status_code rtems_task_get_scheduler( _Thread_State_acquire_critical( the_thread, &lock_context ); - scheduler = _Scheduler_Get( the_thread ); + scheduler = _Thread_Scheduler_get_home( the_thread ); *scheduler_id = _Scheduler_Build_id( _Scheduler_Get_index( scheduler ) ); _Thread_State_release( the_thread, &lock_context ); diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c index 6b8ab4e976..8f0ce31090 100644 --- a/cpukit/rtems/src/tasksetpriority.c +++ b/cpukit/rtems/src/tasksetpriority.c @@ -90,7 +90,7 @@ rtems_status_code rtems_task_set_priority( _Thread_Wait_acquire_critical( the_thread, &queue_context ); - scheduler = _Scheduler_Get_own( the_thread ); + scheduler = _Thread_Scheduler_get_home( the_thread ); old_priority = _Thread_Get_priority( the_thread ); if ( new_priority != RTEMS_CURRENT_PRIORITY ) { -- cgit v1.2.3