diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-05-04 06:05:21 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-05-04 06:05:21 -0400 |
commit | 8319864c96a4b2cd519c2183f61dedc39e3d13a4 (patch) | |
tree | 6a2a8e4b09006b5d1b123e456941f22e3165db88 | |
parent | 51ca2ae6856e9edb81100fa9b3deb51eee8c9f73 (diff) |
Define is_priority_boosted() if !CONFIG_LITMUS_LOCKING
To avoid compile errors if locking support is disabled, and to avoid
having to use #ifdef each time is_priority_boosted() is used.
-rw-r--r-- | include/litmus/litmus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index 613264655d97..e35c38c4c0a2 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -45,8 +45,14 @@ void litmus_exit_task(struct task_struct *tsk); | |||
45 | #define tsk_rt(t) (&(t)->rt_param) | 45 | #define tsk_rt(t) (&(t)->rt_param) |
46 | 46 | ||
47 | /* Realtime utility macros */ | 47 | /* Realtime utility macros */ |
48 | #ifdef CONFIG_LITMUS_LOCKING | ||
48 | #define is_priority_boosted(t) (tsk_rt(t)->priority_boosted) | 49 | #define is_priority_boosted(t) (tsk_rt(t)->priority_boosted) |
49 | #define get_boost_start(t) (tsk_rt(t)->boost_start_time) | 50 | #define get_boost_start(t) (tsk_rt(t)->boost_start_time) |
51 | #else | ||
52 | #define is_priority_boosted(t) 0 | ||
53 | #define get_boost_start(t) 0 | ||
54 | #endif | ||
55 | |||
50 | 56 | ||
51 | /* task_params macros */ | 57 | /* task_params macros */ |
52 | #define get_exec_cost(t) (tsk_rt(t)->task_params.exec_cost) | 58 | #define get_exec_cost(t) (tsk_rt(t)->task_params.exec_cost) |