From 7147dc43b874271a0d4c14bbbc8ea10d1ed57cef Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 8 Nov 2017 14:37:35 +0100 Subject: posix: Remove POSIX_API_Control::schedpolicy Use the thread CPU budget algorithm to determine the scheduler policy. This fixes also pthread_getschedparam() for Classic tasks. Update #2514. --- cpukit/posix/src/pthread.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cpukit/posix/src/pthread.c') diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index ba394b4924..43ed140b11 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -141,11 +141,7 @@ static void _POSIX_Threads_Terminate_extension( Thread_Control *executing ) api = executing->API_Extensions[ THREAD_API_POSIX ]; _Thread_State_acquire( executing, &lock_context ); - - if ( api->schedpolicy == SCHED_SPORADIC ) { - _Watchdog_Per_CPU_remove_monotonic( &api->Sporadic.Timer ); - } - + _Watchdog_Per_CPU_remove_monotonic( &api->Sporadic.Timer ); _Thread_State_release( executing, &lock_context ); } -- cgit v1.2.3