aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/litmus.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r--litmus/litmus.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c
index 11ccaafd50de..26938acacafc 100644
--- a/litmus/litmus.c
+++ b/litmus/litmus.c
@@ -110,6 +110,14 @@ asmlinkage long sys_set_rt_task_param(pid_t pid, struct rt_task __user * param)
110 "because wcet > period\n", pid); 110 "because wcet > period\n", pid);
111 goto out_unlock; 111 goto out_unlock;
112 } 112 }
113 if ( tp.cls != RT_CLASS_HARD &&
114 tp.cls != RT_CLASS_SOFT &&
115 tp.cls != RT_CLASS_BEST_EFFORT)
116 {
117 printk(KERN_INFO "litmus: real-time task %d rejected "
118 "because its class is invalid\n");
119 goto out_unlock;
120 }
113 if (tp.budget_policy != NO_ENFORCEMENT && 121 if (tp.budget_policy != NO_ENFORCEMENT &&
114 tp.budget_policy != QUANTUM_ENFORCEMENT && 122 tp.budget_policy != QUANTUM_ENFORCEMENT &&
115 tp.budget_policy != PRECISE_ENFORCEMENT) 123 tp.budget_policy != PRECISE_ENFORCEMENT)