diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-08 14:37:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-09 08:12:11 +0100 |
commit | 7147dc43b874271a0d4c14bbbc8ea10d1ed57cef (patch) | |
tree | 75c26dd9ef681f3558c6f96982e22a22454e2513 /cpukit/posix/src/pthread.c | |
parent | sptests/spconsole01: New test (diff) | |
download | rtems-7147dc43b874271a0d4c14bbbc8ea10d1ed57cef.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/pthread.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 ); } |