diff options
author | Glenn Elliott <gelliott@koruna.cs.unc.edu> | 2010-05-20 14:33:27 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 11:27:34 -0400 |
commit | 6f89d4f31485546674187cf3b4d472f230b263d0 (patch) | |
tree | a9417ea7121e19228870b1e42b323f3bc149af2e /litmus/litmus.c | |
parent | 521422c4ef2c64731f709030915a7b301709f4b4 (diff) |
Added support for choices in budget policy enforcement.
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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 99714d06eed5..86ad5b375934 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 | ||