aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/litmus.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@koruna.cs.unc.edu>2010-05-20 14:33:27 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 11:27:34 -0400
commit6f89d4f31485546674187cf3b4d472f230b263d0 (patch)
treea9417ea7121e19228870b1e42b323f3bc149af2e /include/litmus/litmus.h
parent521422c4ef2c64731f709030915a7b301709f4b4 (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 'include/litmus/litmus.h')
-rw-r--r--include/litmus/litmus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h
index 62107e659c12..d515d1af1096 100644
--- a/include/litmus/litmus.h
+++ b/include/litmus/litmus.h
@@ -83,6 +83,8 @@ inline static int budget_exhausted(struct task_struct* t)
83 return get_exec_time(t) >= get_exec_cost(t); 83 return get_exec_time(t) >= get_exec_cost(t);
84} 84}
85 85
86#define budget_enforced(t) (tsk_rt(t)->task_params.budget_policy != NO_ENFORCEMENT)
87
86 88
87#define is_hrt(t) \ 89#define is_hrt(t) \
88 (tsk_rt(t)->task_params.class == RT_CLASS_HARD) 90 (tsk_rt(t)->task_params.class == RT_CLASS_HARD)