• Philippe Gerum's avatar
    evl/sched: reorganize and clarify priority scales · 43e3850c
    Philippe Gerum authored
    
    
    The new hierachy of priority scales is as follows:
    
    EVL_CORE_MIN_PRIO = EVL_WEAK_MIN_PRIO
    ...
    	EVL_FIFO_MIN_PRIO ==
    	     EVL_QUOTA_MIN_PRIO ==
    	          EVL_TP_MIN_PRIO (== 1)
    	...
    	EVL_FIFO_MAX_PRIO =
    	     EVL_QUOTA_MAX_PRIO ==
    	          EVL_TP_MAX_PRIO ==
    		       EVL_WEAK_MAX_PRIO (< MAX_USER_RT_PRIO)
    ...
    EVL_CORE_MAX_PRIO (> MAX_RT_PRIO)
    
    We reserve a couple of priority levels above the highest inband
    kthread priority (MAX_RT_PRIO..MAX_RT_PRIO+1), which are guaranteed to
    be higher than the highest inband user task priority
    (MAX_USER_RT_PRIO-1) we use for SCHED_FIFO. Those extra levels can be
    used for EVL kthreads which must top the priority of any userland
    thread.
    
    SCHED_EVL was dropped int the process, since userland is now
    constrained to EVL_FIFO_MAX_PRIO by construction.
    Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
    43e3850c
core.c 23 KB