diff options
Diffstat (limited to 'include/litmus')
-rw-r--r-- | include/litmus/fpmath.h | 4 | ||||
-rw-r--r-- | include/litmus/rt_param.h | 12 |
2 files changed, 4 insertions, 12 deletions
diff --git a/include/litmus/fpmath.h b/include/litmus/fpmath.h index 9a2519523fd5..e1450e22842b 100644 --- a/include/litmus/fpmath.h +++ b/include/litmus/fpmath.h | |||
@@ -1,15 +1,11 @@ | |||
1 | #ifndef __FP_MATH_H__ | 1 | #ifndef __FP_MATH_H__ |
2 | #define __FP_MATH_H__ | 2 | #define __FP_MATH_H__ |
3 | 3 | ||
4 | #ifdef CONFIG_PLUGIN_AEDZL | ||
5 | #include <litmus/rt_param.h> | ||
6 | #else | ||
7 | typedef long fpbuf_t; | 4 | typedef long fpbuf_t; |
8 | typedef struct | 5 | typedef struct |
9 | { | 6 | { |
10 | fpbuf_t val; | 7 | fpbuf_t val; |
11 | } fp_t; | 8 | } fp_t; |
12 | #endif | ||
13 | 9 | ||
14 | #define FP_SHIFT 10 | 10 | #define FP_SHIFT 10 |
15 | #define ROUND_BIT (FP_SHIFT - 1) | 11 | #define ROUND_BIT (FP_SHIFT - 1) |
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h index 41ac654dd27e..e746dfc1a185 100644 --- a/include/litmus/rt_param.h +++ b/include/litmus/rt_param.h | |||
@@ -5,6 +5,10 @@ | |||
5 | #ifndef _LINUX_RT_PARAM_H_ | 5 | #ifndef _LINUX_RT_PARAM_H_ |
6 | #define _LINUX_RT_PARAM_H_ | 6 | #define _LINUX_RT_PARAM_H_ |
7 | 7 | ||
8 | #ifdef CONFIG_PLUGIN_AEDZL | ||
9 | #include <litmus/fpmath.h> | ||
10 | #endif | ||
11 | |||
8 | /* Litmus time type. */ | 12 | /* Litmus time type. */ |
9 | typedef unsigned long long lt_t; | 13 | typedef unsigned long long lt_t; |
10 | 14 | ||
@@ -33,14 +37,6 @@ typedef enum { | |||
33 | PRECISE_ENFORCEMENT /* NOT IMPLEMENTED - enforced with hrtimers */ | 37 | PRECISE_ENFORCEMENT /* NOT IMPLEMENTED - enforced with hrtimers */ |
34 | } budget_policy_t; | 38 | } budget_policy_t; |
35 | 39 | ||
36 | #ifdef CONFIG_PLUGIN_AEDZL | ||
37 | typedef long fpbuf_t; | ||
38 | typedef struct | ||
39 | { | ||
40 | fpbuf_t val; | ||
41 | } fp_t; | ||
42 | #endif | ||
43 | |||
44 | struct rt_task { | 40 | struct rt_task { |
45 | lt_t exec_cost; | 41 | lt_t exec_cost; |
46 | lt_t period; | 42 | lt_t period; |