aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-06-26 04:58:22 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-07-23 05:58:01 -0400
commitb83f375cdcaf08055ff8bff9d76944edca4202dc (patch)
treed7d68a3d8e13e77a7ecdf393d2c7ed3399dc9006
parentc1350f82ee53098f52b712877c3b8e0876952f52 (diff)
P-FP: reject tasks with invalid priorities
The existing admission test failed to test for too-low priorities. Use the common macro to accept only valid priorities.
-rw-r--r--litmus/sched_pfp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/sched_pfp.c b/litmus/sched_pfp.c
index 3f1fb03f0c35..62be699629b1 100644
--- a/litmus/sched_pfp.c
+++ b/litmus/sched_pfp.c
@@ -1613,7 +1613,7 @@ static long pfp_admit_task(struct task_struct* tsk)
1613 /* don't allow tasks on release master CPU */ 1613 /* don't allow tasks on release master CPU */
1614 task_cpu(tsk) != remote_dom(task_cpu(tsk))->release_master && 1614 task_cpu(tsk) != remote_dom(task_cpu(tsk))->release_master &&
1615#endif 1615#endif
1616 get_priority(tsk) > 0) 1616 litmus_is_valid_fixed_prio(get_priority(tsk)))
1617 return 0; 1617 return 0;
1618 else 1618 else
1619 return -EINVAL; 1619 return -EINVAL;