diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-10-18 16:01:10 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-10-19 09:40:41 -0400 |
commit | 576b1ad144f81d3fd3bd37d18dab86cd1e8660b0 (patch) | |
tree | 07cb473c807f4a4297d117883c9a6c3fa14110ba /include/litmus/budget.h | |
parent | 9b718afbc5db5a808804a336c17ba896a9f048a1 (diff) |
Litmus core: add plugin-independent precise budget enforcement infrastructure
Simple logic: if a task requires precise enforcement, then program a
hr-timer to fire when the task must be descheduled. When the timer
fires, simply activate the scheduler. When we switch to a different
task, either reprogram the timer or cancel it.
Diffstat (limited to 'include/litmus/budget.h')
-rw-r--r-- | include/litmus/budget.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/litmus/budget.h b/include/litmus/budget.h new file mode 100644 index 000000000000..732530e63491 --- /dev/null +++ b/include/litmus/budget.h | |||
@@ -0,0 +1,8 @@ | |||
1 | #ifndef _LITMUS_BUDGET_H_ | ||
2 | #define _LITMUS_BUDGET_H_ | ||
3 | |||
4 | /* Update the per-processor enforcement timer (arm/reproram/cancel) for | ||
5 | * the next task. */ | ||
6 | void update_enforcement_timer(struct task_struct* t); | ||
7 | |||
8 | #endif | ||