diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-31 08:33:11 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:45 +0100 |
commit | 2dd098a6359d9df132da09201ea0506c5389dc80 (patch) | |
tree | 0eb695dc9985894cf796d93ad1249344354f4863 /cpukit/posix/src | |
parent | score: Delete Thread_Scheduler_control::own_node (diff) | |
download | rtems-2dd098a6359d9df132da09201ea0506c5389dc80.tar.bz2 |
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.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/mutexinit.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/pthread.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadcreate.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadgetschedparam.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadsetschedparam.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadsetschedprio.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/sched_getprioritymax.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/posix/src/mutexinit.c b/cpukit/posix/src/mutexinit.c index 0dacc3fa03..39139a4291 100644 --- a/cpukit/posix/src/mutexinit.c +++ b/cpukit/posix/src/mutexinit.c @@ -110,7 +110,7 @@ int pthread_mutex_init( int prio_ceiling; bool valid; - scheduler = _Scheduler_Get_own( _Thread_Get_executing() ); + scheduler = _Thread_Scheduler_get_home( _Thread_Get_executing() ); prio_ceiling = the_attr->prio_ceiling; if ( prio_ceiling == INT_MAX ) { diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 9cd730b59f..6a39e3ed5e 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -168,7 +168,7 @@ static bool _POSIX_Threads_Create_extension( api->thread = created; _POSIX_Threads_Initialize_attributes( &api->Attributes ); api->Attributes.schedparam.sched_priority = _POSIX_Priority_From_core( - _Scheduler_Get_own( created ), + _Thread_Scheduler_get_home( created ), _Thread_Get_priority( created ) ); diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c index f1983ac128..a04ac00202 100644 --- a/cpukit/posix/src/pthreadcreate.c +++ b/cpukit/posix/src/pthreadcreate.c @@ -151,7 +151,7 @@ int pthread_create( normal_prio = schedparam.sched_priority; - scheduler = _Scheduler_Get_own( executing ); + scheduler = _Thread_Scheduler_get_home( executing ); core_normal_prio = _POSIX_Priority_To_core( scheduler, normal_prio, &valid ); if ( !valid ) { diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c index 1d4812c067..88cd5fde98 100644 --- a/cpukit/posix/src/pthreadgetschedparam.c +++ b/cpukit/posix/src/pthreadgetschedparam.c @@ -58,7 +58,7 @@ int pthread_getschedparam( *policy = api->Attributes.schedpolicy; *param = api->Attributes.schedparam; - scheduler = _Scheduler_Get_own( the_thread ); + scheduler = _Thread_Scheduler_get_home( the_thread ); priority = the_thread->Real_priority.priority; _Thread_Wait_release( the_thread, &queue_context ); diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c index 9aa2122ab8..14ea1cd7f6 100644 --- a/cpukit/posix/src/pthreadsetschedparam.c +++ b/cpukit/posix/src/pthreadsetschedparam.c @@ -55,7 +55,7 @@ static int _POSIX_Set_sched_param( high_prio = low_prio; } - scheduler = _Scheduler_Get_own( the_thread ); + scheduler = _Thread_Scheduler_get_home( the_thread ); core_normal_prio = _POSIX_Priority_To_core( scheduler, low_prio, &valid ); if ( !valid ) { diff --git a/cpukit/posix/src/pthreadsetschedprio.c b/cpukit/posix/src/pthreadsetschedprio.c index e3d9de0136..16b6f3f585 100644 --- a/cpukit/posix/src/pthreadsetschedprio.c +++ b/cpukit/posix/src/pthreadsetschedprio.c @@ -36,7 +36,7 @@ int pthread_setschedprio( pthread_t thread, int prio ) _Thread_queue_Context_clear_priority_updates( &queue_context ); _Thread_Wait_acquire_critical( the_thread, &queue_context ); - scheduler = _Scheduler_Get_own( the_thread ); + scheduler = _Thread_Scheduler_get_home( the_thread ); new_priority = _POSIX_Priority_To_core( scheduler, prio, &valid ); if ( !valid ) { diff --git a/cpukit/posix/src/sched_getprioritymax.c b/cpukit/posix/src/sched_getprioritymax.c index 5903f25d59..d882153ff2 100644 --- a/cpukit/posix/src/sched_getprioritymax.c +++ b/cpukit/posix/src/sched_getprioritymax.c @@ -43,6 +43,6 @@ int sched_get_priority_max( rtems_set_errno_and_return_minus_one( EINVAL ); } - scheduler = _Scheduler_Get_own( _Thread_Get_executing() ); + scheduler = _Thread_Scheduler_get_home( _Thread_Get_executing() ); return _POSIX_Priority_Get_maximum( scheduler ); } |