libroot: Update sched_get_priority_{max, min}()
SCHED_RR is a real-time scheduling policy. SCHED_FIFO and SCHED_SPORADIC are not supported (at least for now).
This commit is contained in:
@@ -26,9 +26,9 @@ int
|
||||
sched_get_priority_min(int policy)
|
||||
{
|
||||
switch (policy) {
|
||||
case SCHED_FIFO:
|
||||
case SCHED_RR:
|
||||
case SCHED_SPORADIC:
|
||||
return B_FIRST_REAL_TIME_PRIORITY;
|
||||
|
||||
case SCHED_OTHER:
|
||||
return B_LOW_PRIORITY;
|
||||
|
||||
@@ -43,9 +43,9 @@ int
|
||||
sched_get_priority_max(int policy)
|
||||
{
|
||||
switch (policy) {
|
||||
case SCHED_FIFO:
|
||||
case SCHED_RR:
|
||||
case SCHED_SPORADIC:
|
||||
return B_REAL_TIME_PRIORITY;
|
||||
|
||||
case SCHED_OTHER:
|
||||
return B_URGENT_DISPLAY_PRIORITY;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user