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:
Pawel Dziepak
2013-10-09 20:57:42 +02:00
parent 29e65827fd
commit 298314fe4b
+4 -4
View File
@@ -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;