diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-09-22 17:56:59 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-10-19 09:40:40 -0400 |
commit | 9b718afbc5db5a808804a336c17ba896a9f048a1 (patch) | |
tree | 0f54274d8b5e0541fb16ccf8f2cfcc8f54efb2fb /include/litmus | |
parent | bf34c69c682443b5bf2f9009b1a0039fd60e654f (diff) |
Litmus core: add macro to test for PRECISE_ENFORCEMENT
Required for EDF-WM. We should implement precise enforcement
in the core distribution soon anyway (once we know how it
works in EDF-WM).
Diffstat (limited to 'include/litmus')
-rw-r--r-- | include/litmus/litmus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index 69894f59c8d8..5d20276e44f4 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -96,6 +96,8 @@ inline static lt_t budget_remaining(struct task_struct* t) | |||
96 | 96 | ||
97 | #define budget_enforced(t) (tsk_rt(t)->task_params.budget_policy != NO_ENFORCEMENT) | 97 | #define budget_enforced(t) (tsk_rt(t)->task_params.budget_policy != NO_ENFORCEMENT) |
98 | 98 | ||
99 | #define budget_precisely_enforced(t) (tsk_rt(t)->task_params.budget_policy \ | ||
100 | == PRECISE_ENFORCEMENT) | ||
99 | 101 | ||
100 | #define is_hrt(t) \ | 102 | #define is_hrt(t) \ |
101 | (tsk_rt(t)->task_params.class == RT_CLASS_HARD) | 103 | (tsk_rt(t)->task_params.class == RT_CLASS_HARD) |