aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus.h
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-02 11:18:56 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-05-02 11:18:56 -0400
commit9b85a6e707adff71ea3b329756f2b854fbdc6b0b (patch)
tree4fadb5d34c42d10616079cd6adf39c334cecebba /include/litmus.h
parent2ecaa462efc710ae8f55af9dd5371b4d67bfd620 (diff)
Add best effort task migration, so that we can support PSN-EDF.
Diffstat (limited to 'include/litmus.h')
-rw-r--r--include/litmus.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/litmus.h b/include/litmus.h
index a5d3e2e..7ee13dc 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -9,18 +9,21 @@ typedef int pid_t; /* PID of a task */
9/* obtain the PID of a thread */ 9/* obtain the PID of a thread */
10pid_t gettid(void); 10pid_t gettid(void);
11 11
12/* migrate to partition */
13int be_migrate_to(int target_cpu);
14
12int set_rt_task_param(pid_t pid, struct rt_task* param); 15int set_rt_task_param(pid_t pid, struct rt_task* param);
13int get_rt_task_param(pid_t pid, struct rt_task* param); 16int get_rt_task_param(pid_t pid, struct rt_task* param);
14 17
15/* setup helper */ 18/* setup helper */
16/* times are givin in ms */ 19/* times are givin in ms */
17int sporadic_task(lt_t e, lt_t p, lt_t phase, 20int sporadic_task(lt_t e, lt_t p, lt_t phase,
18 int partition, task_class_t cls); 21 int partition, task_class_t cls, int set_cpu_set);
19 22
20#define sporadic_global(e, p) \ 23#define sporadic_global(e, p) \
21 sporadic_task(e, p, 0, 0, RT_CLASS_SOFT) 24 sporadic_task(e, p, 0, 0, RT_CLASS_SOFT, 0)
22#define sporadic_partitioned(e, p, cpu) \ 25#define sporadic_partitioned(e, p, cpu) \
23 sporadic_task(e, p, 0, cpu, RT_CLASS_SOFT) 26 sporadic_task(e, p, 0, cpu, RT_CLASS_SOFT, 1)
24 27
25/* file descriptor attached shared objects support */ 28/* file descriptor attached shared objects support */
26typedef enum { 29typedef enum {