aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-04-25 15:23:39 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-04-25 15:23:39 -0400
commit50e4938993cbb7ce43566c18d7d6616b2b8c61d6 (patch)
treef92a3da242cd4fa709835252fcaa23a18d782152 /include
parent3695e6b8dd1eeb288419674df951a35dd69ade52 (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.h2
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);
33void __add_release(edf_domain_t* edf, struct task_struct *task); 33void __add_release(edf_domain_t* edf, struct task_struct *task);
34 34
35struct task_struct* __take_ready(edf_domain_t* edf); 35struct task_struct* __take_ready(edf_domain_t* edf);
36struct task_struct* __peek_ready(edf_domain_t* edf);
37
36 38
37void try_release_pending(edf_domain_t* edf); 39void try_release_pending(edf_domain_t* edf);
38void __prepare_new_release(struct task_struct *t, jiffie_t start); 40void __prepare_new_release(struct task_struct *t, jiffie_t start);