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/include/rtems/posix/pthreadimpl.h | 4 ++++ cpukit/posix/include/rtems/posix/threadsup.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'cpukit/posix/include') diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h index 82593d3097..3e2351e57e 100644 --- a/cpukit/posix/include/rtems/posix/pthreadimpl.h +++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h @@ -77,6 +77,10 @@ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ); +int _POSIX_Thread_Translate_to_sched_policy( + Thread_CPU_budget_algorithms budget_algorithm +); + /** * @brief Translate sched_param into SuperCore terms. * diff --git a/cpukit/posix/include/rtems/posix/threadsup.h b/cpukit/posix/include/rtems/posix/threadsup.h index b3b3910084..4b62b19e1c 100644 --- a/cpukit/posix/include/rtems/posix/threadsup.h +++ b/cpukit/posix/include/rtems/posix/threadsup.h @@ -43,9 +43,6 @@ typedef struct { /** Created with explicit or inherited scheduler. */ bool created_with_explicit_scheduler; - /** The scheduler policy. */ - int schedpolicy; - /** * @brief Control block for the sporadic server scheduling policy. */ -- cgit v1.2.3