diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-02 11:18:56 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-02 11:18:56 -0400 |
commit | 9b85a6e707adff71ea3b329756f2b854fbdc6b0b (patch) | |
tree | 4fadb5d34c42d10616079cd6adf39c334cecebba /include/litmus.h | |
parent | 2ecaa462efc710ae8f55af9dd5371b4d67bfd620 (diff) |
Add best effort task migration, so that we can support PSN-EDF.
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 9 |
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 */ |
10 | pid_t gettid(void); | 10 | pid_t gettid(void); |
11 | 11 | ||
12 | /* migrate to partition */ | ||
13 | int be_migrate_to(int target_cpu); | ||
14 | |||
12 | int set_rt_task_param(pid_t pid, struct rt_task* param); | 15 | int set_rt_task_param(pid_t pid, struct rt_task* param); |
13 | int get_rt_task_param(pid_t pid, struct rt_task* param); | 16 | int 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 */ |
17 | int sporadic_task(lt_t e, lt_t p, lt_t phase, | 20 | int 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 */ |
26 | typedef enum { | 29 | typedef enum { |