diff options
Diffstat (limited to 'cpukit/score/include/rtems/score/scheduler.h')
-rw-r--r-- | cpukit/score/include/rtems/score/scheduler.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/scheduler.h b/cpukit/score/include/rtems/score/scheduler.h index 5296644aeb..1e6236fa4d 100644 --- a/cpukit/score/include/rtems/score/scheduler.h +++ b/cpukit/score/include/rtems/score/scheduler.h @@ -201,6 +201,14 @@ struct Scheduler_Control { Scheduler_Operations Operations; /** + * @brief The maximum priority value of this scheduler. + * + * It defines the lowest (least important) thread priority for this + * scheduler. For example the idle threads have this priority. + */ + Priority_Control maximum_priority; + + /** * @brief The scheduler name. */ uint32_t name; @@ -555,6 +563,12 @@ void _Scheduler_default_Start_idle( #define SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY #endif +/** + * @brief This defines the lowest (least important) thread priority of the + * first scheduler instance. + */ +#define PRIORITY_MAXIMUM ( _Scheduler_Table[ 0 ].maximum_priority ) + /**@}*/ #ifdef __cplusplus |