diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-04-25 15:23:39 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-04-25 15:23:39 -0400 |
commit | 50e4938993cbb7ce43566c18d7d6616b2b8c61d6 (patch) | |
tree | f92a3da242cd4fa709835252fcaa23a18d782152 /include | |
parent | 3695e6b8dd1eeb288419674df951a35dd69ade52 (diff) |
Fixed GSN-EDF job_arrival() function.
Now the correct job is linked in case that a linked job lowers its
priority. This could happen if a tardy job's successor is immediately
released in the scheduler_tick() function.
The preemption_needed() function was made more robust to handle NULL
pointers correctly (needed for GSN-EDF).
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/edf_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/edf_common.h b/include/linux/edf_common.h index 3b6a1de457..252efce97a 100644 --- a/include/linux/edf_common.h +++ b/include/linux/edf_common.h | |||
@@ -33,6 +33,8 @@ void __add_ready(edf_domain_t* edf, struct task_struct *new); | |||
33 | void __add_release(edf_domain_t* edf, struct task_struct *task); | 33 | void __add_release(edf_domain_t* edf, struct task_struct *task); |
34 | 34 | ||
35 | struct task_struct* __take_ready(edf_domain_t* edf); | 35 | struct task_struct* __take_ready(edf_domain_t* edf); |
36 | struct task_struct* __peek_ready(edf_domain_t* edf); | ||
37 | |||
36 | 38 | ||
37 | void try_release_pending(edf_domain_t* edf); | 39 | void try_release_pending(edf_domain_t* edf); |
38 | void __prepare_new_release(struct task_struct *t, jiffie_t start); | 40 | void __prepare_new_release(struct task_struct *t, jiffie_t start); |