• Robert Love's avatar
    [PATCH] trivial task_prio() fix · 7957f703
    Robert Love authored
    Here is a trivial fix for task_prio() in the case MAX_RT_PRIO !=
    MAX_USER_RT_PRIO.  In this case, all priorities are skewed by
    (MAX_RT_PRIO - MAX_USER_RT_PRIO).
    
    The fix is to subtract the full MAX_RT_PRIO value from p->prio, not just
    MAX_USER_RT_PRIO.  This makes sense, as the full priority range is
    unrelated to the maximum user value.  Only the real maximum RT value
    matters.
    
    This has been in Andrew's tree for awhile, with no issue.  Also, Ingo
    acked it.
    7957f703
sched.c 62.6 KB