From 3f3f42482daa45aff3647f34afb4e2c4eca242cd Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 17 Oct 2017 09:20:20 +0200 Subject: posix: Remove POSIX_API_Control::schedparam Move sporadic server scheduler parameters to POSIX_API_Control::Sporadic. Remove redundant scheduler priority parameter. Update #2514. --- cpukit/posix/include/rtems/posix/threadsup.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'cpukit/posix/include/rtems/posix/threadsup.h') diff --git a/cpukit/posix/include/rtems/posix/threadsup.h b/cpukit/posix/include/rtems/posix/threadsup.h index 816ef566d8..b3b3910084 100644 --- a/cpukit/posix/include/rtems/posix/threadsup.h +++ b/cpukit/posix/include/rtems/posix/threadsup.h @@ -46,9 +46,6 @@ typedef struct { /** The scheduler policy. */ int schedpolicy; - /** The scheduler parameters */ - struct sched_param schedparam; - /** * @brief Control block for the sporadic server scheduling policy. */ @@ -67,6 +64,23 @@ typedef struct { * policy. */ Priority_Node Low_priority; + + /** + * @brief Replenishment period for sporadic server. + */ + struct timespec sched_ss_repl_period; + + /** + * @brief Initial budget for sporadic server. + */ + struct timespec sched_ss_init_budget; + + /** + * @brief Maximum pending replenishments. + * + * Only used by pthread_getschedparam() and pthread_getattr_np(). + */ + int sched_ss_max_repl; } Sporadic; /** This is the set of signals which are currently unblocked. */ -- cgit v1.2.3