aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/edf_common.h
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2009-12-17 21:32:31 -0500
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-29 17:15:58 -0400
commitf5936ecf0cff0b94419b6768efba3e15622beeb6 (patch)
tree3801d9593485393d5f0c81ced18e0298e0bceb17 /include/litmus/edf_common.h
parent53696c1fe6a6ada66f2a47c078d62aee40ad8ebe (diff)
[ported from 2008.3] Add common EDF functions
Diffstat (limited to 'include/litmus/edf_common.h')
-rw-r--r--include/litmus/edf_common.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/litmus/edf_common.h b/include/litmus/edf_common.h
new file mode 100644
index 000000000000..166cdac6bcab
--- /dev/null
+++ b/include/litmus/edf_common.h
@@ -0,0 +1,27 @@
1/*
2 * EDF common data structures and utility functions shared by all EDF
3 * based scheduler plugins
4 */
5
6/* CLEANUP: Add comments and make it less messy.
7 *
8 */
9
10#ifndef __UNC_EDF_COMMON_H__
11#define __UNC_EDF_COMMON_H__
12
13#include <litmus/rt_domain.h>
14
15void edf_domain_init(rt_domain_t* rt, check_resched_needed_t resched,
16 release_jobs_t release);
17
18int edf_higher_prio(struct task_struct* first,
19 struct task_struct* second);
20
21int edf_ready_order(struct heap_node* a, struct heap_node* b);
22
23int edf_preemption_needed(rt_domain_t* rt, struct task_struct *t);
24
25int edf_set_hp_task(struct pi_semaphore *sem);
26int edf_set_hp_cpu_task(struct pi_semaphore *sem, int cpu);
27#endif