aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/litmus.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/litmus/litmus.h')
-rw-r--r--include/litmus/litmus.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h
index 9a7334f1eb00..e2df49b171c5 100644
--- a/include/litmus/litmus.h
+++ b/include/litmus/litmus.h
@@ -26,6 +26,7 @@ static inline int in_list(struct list_head* list)
26 ); 26 );
27} 27}
28 28
29
29struct task_struct* __waitqueue_remove_first(wait_queue_head_t *wq); 30struct task_struct* __waitqueue_remove_first(wait_queue_head_t *wq);
30 31
31#define NO_CPU 0xffffffff 32#define NO_CPU 0xffffffff
@@ -124,7 +125,9 @@ static inline lt_t litmus_clock(void)
124#define earlier_release(a, b) (lt_before(\ 125#define earlier_release(a, b) (lt_before(\
125 (a)->rt_param.job_params.release,\ 126 (a)->rt_param.job_params.release,\
126 (b)->rt_param.job_params.release)) 127 (b)->rt_param.job_params.release))
127 128#define shorter_period(a, b) (lt_before(\
129 (a)->rt_param.task_params.period,\
130 (b)->rt_param.task_params.period))
128void preempt_if_preemptable(struct task_struct* t, int on_cpu); 131void preempt_if_preemptable(struct task_struct* t, int on_cpu);
129 132
130#ifdef CONFIG_LITMUS_LOCKING 133#ifdef CONFIG_LITMUS_LOCKING