diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-04-23 14:36:32 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2007-04-23 14:36:32 -0400 |
commit | 3d1644cdf54c51a64f8fe46555c5dbda0fe868e1 (patch) | |
tree | ba174b8a989abd376fd08819b5fe0db2b08d6062 /include | |
parent | 7782786abd16f5b9221fa766feea1b36bcebabb9 (diff) |
break deadlines in EDF schemes by PID
Adds the new priority comparison function edf_higher_prio(). By the use of
PIDs priorities are now unique. The edf_common.c code uses the new
function. Does not handle priority inheritance yet.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/edf_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/edf_common.h b/include/linux/edf_common.h index 7a222d419c..3b6a1de457 100644 --- a/include/linux/edf_common.h +++ b/include/linux/edf_common.h | |||
@@ -26,6 +26,9 @@ typedef struct _edf_domain { | |||
26 | 26 | ||
27 | void edf_domain_init(edf_domain_t *edf, edf_check_resched_needed_t f); | 27 | void edf_domain_init(edf_domain_t *edf, edf_check_resched_needed_t f); |
28 | 28 | ||
29 | int edf_higher_prio(struct task_struct* first, | ||
30 | struct task_struct* second); | ||
31 | |||
29 | void __add_ready(edf_domain_t* edf, struct task_struct *new); | 32 | void __add_ready(edf_domain_t* edf, struct task_struct *new); |
30 | void __add_release(edf_domain_t* edf, struct task_struct *task); | 33 | void __add_release(edf_domain_t* edf, struct task_struct *task); |
31 | 34 | ||