diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-06-20 05:29:09 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2014-07-21 08:47:42 -0400 |
commit | 2c473bc894835fb99a930d42cf655575cb4551a4 (patch) | |
tree | 56c627ed9a942b00e71f0229f1ea25191528a90b | |
parent | 18d9c41cb971a2743b9c077a093e56bea41e45a5 (diff) |
default_wait_for_release_at() should invoke plugin callback
Instead of calling complete_job() directly, the default implementation
of wait_for_release_at() should invoke the plugin-provided
complete_job() method to support plugins that happen to override
complete_job(), but not wait_for_release_at().
-rw-r--r-- | litmus/jobs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/litmus/jobs.c b/litmus/jobs.c index 2d9f8aabf4e2..547222c3387a 100644 --- a/litmus/jobs.c +++ b/litmus/jobs.c | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/sched.h> | 4 | #include <linux/sched.h> |
5 | 5 | ||
6 | #include <litmus/litmus.h> | 6 | #include <litmus/litmus.h> |
7 | #include <litmus/sched_plugin.h> | ||
7 | #include <litmus/jobs.h> | 8 | #include <litmus/jobs.h> |
8 | 9 | ||
9 | static inline void setup_release(struct task_struct *t, lt_t release) | 10 | static inline void setup_release(struct task_struct *t, lt_t release) |
@@ -58,7 +59,7 @@ long default_wait_for_release_at(lt_t release_time) | |||
58 | tsk_rt(t)->sporadic_release = 1; | 59 | tsk_rt(t)->sporadic_release = 1; |
59 | local_irq_restore(flags); | 60 | local_irq_restore(flags); |
60 | 61 | ||
61 | return complete_job(); | 62 | return litmus->complete_job(); |
62 | } | 63 | } |
63 | 64 | ||
64 | 65 | ||