diff options
author | Manohar Vanga <mvanga@mpi-sws.org> | 2012-10-03 18:30:51 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-11-27 13:50:17 -0500 |
commit | b7012aa7edba4b88906fc39b9005ff4dae69be59 (patch) | |
tree | 5176a5e920adcb4158d67778b2cdecb1e3cdc4c0 /litmus/jobs.c | |
parent | e99428ce6786f76b64cfea5da814a7a5cd939de3 (diff) |
litmus: get rid of RT_F_SLEEP and RT_F_RUNNING
This patch removes the flags RT_F_SLEEP and RT_F_RUNNING
as their name is misleading. This patch replaces them with
a 'completed' field in struct rt_param.
Signed-off-by: Manohar Vanga <mvanga@mpi-sws.org>
Diffstat (limited to 'litmus/jobs.c')
-rw-r--r-- | litmus/jobs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/jobs.c b/litmus/jobs.c index fb093c03d53d..13a4ed4c9e93 100644 --- a/litmus/jobs.c +++ b/litmus/jobs.c | |||
@@ -38,7 +38,7 @@ void release_at(struct task_struct *t, lt_t start) | |||
38 | { | 38 | { |
39 | BUG_ON(!t); | 39 | BUG_ON(!t); |
40 | setup_release(t, start); | 40 | setup_release(t, start); |
41 | set_rt_flags(t, RT_F_RUNNING); | 41 | tsk_rt(t)->completed = 0; |
42 | } | 42 | } |
43 | 43 | ||
44 | 44 | ||
@@ -48,7 +48,7 @@ void release_at(struct task_struct *t, lt_t start) | |||
48 | long complete_job(void) | 48 | long complete_job(void) |
49 | { | 49 | { |
50 | /* Mark that we do not excute anymore */ | 50 | /* Mark that we do not excute anymore */ |
51 | set_rt_flags(current, RT_F_SLEEP); | 51 | tsk_rt(current)->completed = 1; |
52 | /* call schedule, this will return when a new job arrives | 52 | /* call schedule, this will return when a new job arrives |
53 | * it also takes care of preparing for the next release | 53 | * it also takes care of preparing for the next release |
54 | */ | 54 | */ |