aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-07-17 17:23:12 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2012-07-17 17:26:22 -0400
commit1c5a2a2cf3b7c99715fffc96cd80bfb03aef6648 (patch)
treef22a5a79c9baf95174f340b55e68df9a9b55dd7d /include
parent1253e42eae22b6439ac9f3027d01740c95b8dcd6 (diff)
Revisions based on review comments.
* Simplified jobs.c. * Fixed bug in density admissions check. * Renamed rdeadline to be relative_deadline.
Diffstat (limited to 'include')
-rw-r--r--include/litmus/litmus.h14
-rw-r--r--include/litmus/rt_param.h2
2 files changed, 10 insertions, 6 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h
index 00b434f83c75..bbeab994a817 100644
--- a/include/litmus/litmus.h
+++ b/include/litmus/litmus.h
@@ -47,18 +47,22 @@ void litmus_exit_task(struct task_struct *tsk);
47/* Realtime utility macros */ 47/* Realtime utility macros */
48#define get_rt_flags(t) (tsk_rt(t)->flags) 48#define get_rt_flags(t) (tsk_rt(t)->flags)
49#define set_rt_flags(t,f) (tsk_rt(t)->flags=(f)) 49#define set_rt_flags(t,f) (tsk_rt(t)->flags=(f))
50#define is_priority_boosted(t) (tsk_rt(t)->priority_boosted)
51#define get_boost_start(t) (tsk_rt(t)->boost_start_time)
52
53/* task_params macros */
50#define get_exec_cost(t) (tsk_rt(t)->task_params.exec_cost) 54#define get_exec_cost(t) (tsk_rt(t)->task_params.exec_cost)
51#define get_exec_time(t) (tsk_rt(t)->job_params.exec_time)
52#define get_rt_period(t) (tsk_rt(t)->task_params.period) 55#define get_rt_period(t) (tsk_rt(t)->task_params.period)
53#define get_rt_rdeadline(t) (tsk_rt(t)->task_params.rdeadline) 56#define get_rt_relative_deadline(t) (tsk_rt(t)->task_params.relative_deadline)
54#define get_rt_phase(t) (tsk_rt(t)->task_params.phase) 57#define get_rt_phase(t) (tsk_rt(t)->task_params.phase)
55#define get_partition(t) (tsk_rt(t)->task_params.cpu) 58#define get_partition(t) (tsk_rt(t)->task_params.cpu)
59#define get_class(t) (tsk_rt(t)->task_params.cls)
60
61/* job_param macros */
62#define get_exec_time(t) (tsk_rt(t)->job_params.exec_time)
56#define get_deadline(t) (tsk_rt(t)->job_params.deadline) 63#define get_deadline(t) (tsk_rt(t)->job_params.deadline)
57#define get_release(t) (tsk_rt(t)->job_params.release) 64#define get_release(t) (tsk_rt(t)->job_params.release)
58#define get_class(t) (tsk_rt(t)->task_params.cls)
59 65
60#define is_priority_boosted(t) (tsk_rt(t)->priority_boosted)
61#define get_boost_start(t) (tsk_rt(t)->boost_start_time)
62 66
63inline static int budget_exhausted(struct task_struct* t) 67inline static int budget_exhausted(struct task_struct* t)
64{ 68{
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h
index 0ddd8c134533..60d814248685 100644
--- a/include/litmus/rt_param.h
+++ b/include/litmus/rt_param.h
@@ -36,7 +36,7 @@ typedef enum {
36struct rt_task { 36struct rt_task {
37 lt_t exec_cost; 37 lt_t exec_cost;
38 lt_t period; 38 lt_t period;
39 lt_t rdeadline; 39 lt_t relative_deadline;
40 lt_t phase; 40 lt_t phase;
41 unsigned int cpu; 41 unsigned int cpu;
42 task_class_t cls; 42 task_class_t cls;