aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/litmus.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@koruna.cs.unc.edu>2010-05-20 14:33:27 -0400
committerGlenn Elliott <gelliott@koruna.cs.unc.edu>2010-05-20 14:33:27 -0400
commit8b637fddc7f9a91febdb7fb398ac0a5f97d491ee (patch)
tree838097851d047e26a0f06625b4b867e0f5aec777 /litmus/litmus.c
parent3813e4586d0f05bdcfdf8a09e535949d2d28fba9 (diff)
Added support for choices in budget policy enforcement.wip-budget
NO_ENFORCEMENT - A job may execute beyond its declared execution time. Jobs notify the kernel that they are complete via liblitmus's sleep_next_period() QUANTUM_ENFORCEMENT - The kernel terminates a job if its actual execution time exceeds the declared execution time. PRECISE_ENFORCEMENT - Hook declared, but not yet implemented. Plan to support this policy through hrtimers. Error thrown if specified.
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r--litmus/litmus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c
index e43596a5104c..8b8f2c171a5e 100644
--- a/litmus/litmus.c
+++ b/litmus/litmus.c
@@ -112,6 +112,13 @@ asmlinkage long sys_set_rt_task_param(pid_t pid, struct rt_task __user * param)
112 "because wcet > period\n", pid); 112 "because wcet > period\n", pid);
113 goto out_unlock; 113 goto out_unlock;
114 } 114 }
115 if (tp.budget_policy != NO_ENFORCEMENT &&
116 tp.budget_policy != QUANTUM_ENFORCEMENT)
117 {
118 printk(KERN_INFO "litmus: real-time task %d rejected "
119 "because unsupported budget enforcement policy specified\n", pid);
120 goto out_unlock;
121 }
115 122
116 target->rt_param.task_params = tp; 123 target->rt_param.task_params = tp;
117 124