diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-09 10:43:09 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-09 10:43:09 -0400 |
commit | 5327ed32656d2888316ed01a960fa3929eae2e3c (patch) | |
tree | bbb64c4ee03bfaa38938430ce0ac3357f2a17791 /include | |
parent | ae76072b22ab8a4dca72ba0115800473803aeee9 (diff) |
add GQ-EDF
Support for Global Quantum-Driven EDF
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/edf_common.h | 1 | ||||
-rw-r--r-- | include/litmus/rt_param.h | 18 |
2 files changed, 13 insertions, 6 deletions
diff --git a/include/litmus/edf_common.h b/include/litmus/edf_common.h index 32dcf9bd6b..5060926a42 100644 --- a/include/litmus/edf_common.h +++ b/include/litmus/edf_common.h | |||
@@ -17,6 +17,7 @@ void edf_domain_init(rt_domain_t* rt, check_resched_needed_t resched, | |||
17 | 17 | ||
18 | int edf_higher_prio(struct task_struct* first, | 18 | int edf_higher_prio(struct task_struct* first, |
19 | struct task_struct* second); | 19 | struct task_struct* second); |
20 | int edf_ready_order(struct heap_node* a, struct heap_node* b); | ||
20 | 21 | ||
21 | int edf_preemption_needed(rt_domain_t* rt, struct task_struct *t); | 22 | int edf_preemption_needed(rt_domain_t* rt, struct task_struct *t); |
22 | 23 | ||
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h index 26b2a4b45e..155543ea93 100644 --- a/include/litmus/rt_param.h +++ b/include/litmus/rt_param.h | |||
@@ -102,12 +102,18 @@ struct rt_param { | |||
102 | */ | 102 | */ |
103 | short* np_flag; | 103 | short* np_flag; |
104 | 104 | ||
105 | /* For the FMLP under PSN-EDF, it is required to make the task | 105 | /* re-use unused counter in plugins that don't need it */ |
106 | * non-preemptive from kernel space. In order not to interfere with | 106 | union { |
107 | * user space, this counter indicates the kernel space np setting. | 107 | /* For the FMLP under PSN-EDF, it is required to make the task |
108 | * kernel_np > 0 => task is non-preemptive | 108 | * non-preemptive from kernel space. In order not to interfere with |
109 | */ | 109 | * user space, this counter indicates the kernel space np setting. |
110 | unsigned int kernel_np; | 110 | * kernel_np > 0 => task is non-preemptive |
111 | */ | ||
112 | unsigned int kernel_np; | ||
113 | |||
114 | /* Used by GQ-EDF */ | ||
115 | unsigned int last_cpu; | ||
116 | }; | ||
111 | 117 | ||
112 | /* This field can be used by plugins to store where the task | 118 | /* This field can be used by plugins to store where the task |
113 | * is currently scheduled. It is the responsibility of the | 119 | * is currently scheduled. It is the responsibility of the |