diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2012-10-09 23:19:37 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-10-11 18:30:57 -0400 |
commit | 549f0df67a3346fecc8bebe04d21a2c24045c093 (patch) | |
tree | 8a5a22d853e4a63c8c3407a9ff9eed7c69319840 /include | |
parent | 559680d37afd399928fb70a21961d625af7d96bb (diff) |
uncachable color control page
Signed-off-by: Christopher Kenna <cjk@cs.unc.edu>
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/color.h | 6 | ||||
-rw-r--r-- | include/litmus/litmus.h | 4 | ||||
-rw-r--r-- | include/litmus/rt_param.h | 3 |
3 files changed, 13 insertions, 0 deletions
diff --git a/include/litmus/color.h b/include/litmus/color.h index eefb6c6dddf5..0e67028f8ea3 100644 --- a/include/litmus/color.h +++ b/include/litmus/color.h | |||
@@ -6,6 +6,12 @@ | |||
6 | #define ONE_COLOR_LEN 11 | 6 | #define ONE_COLOR_LEN 11 |
7 | #define ONE_COLOR_FMT "%4lu: %4d\n" | 7 | #define ONE_COLOR_FMT "%4lu: %4d\n" |
8 | 8 | ||
9 | #ifdef CONFIG_PHYS_ADDR_T_64BIT | ||
10 | #define FMT_PA "llx" | ||
11 | #else | ||
12 | #define FMT_PA "lx" | ||
13 | #endif | ||
14 | |||
9 | struct color_cache_info { | 15 | struct color_cache_info { |
10 | unsigned long size; | 16 | unsigned long size; |
11 | unsigned long line_size; | 17 | unsigned long line_size; |
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index 93961d08efd5..91623528ad9e 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -14,6 +14,10 @@ extern atomic_t release_master_cpu; | |||
14 | 14 | ||
15 | void litmus_schedule_deallocation(struct task_struct *t); | 15 | void litmus_schedule_deallocation(struct task_struct *t); |
16 | 16 | ||
17 | #ifdef CONFIG_ARCH_NEEDS_UNCACHED_CONTROL_PAGE | ||
18 | void * remap_noncached(void *addr, size_t len); | ||
19 | #endif | ||
20 | |||
17 | /* in_list - is a given list_head queued on some list? | 21 | /* in_list - is a given list_head queued on some list? |
18 | */ | 22 | */ |
19 | static inline int in_list(struct list_head* list) | 23 | static inline int in_list(struct list_head* list) |
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h index 1ee65e19d7b7..e9e26faddcea 100644 --- a/include/litmus/rt_param.h +++ b/include/litmus/rt_param.h | |||
@@ -277,6 +277,9 @@ struct rt_param { | |||
277 | lt_t last_exec_time; | 277 | lt_t last_exec_time; |
278 | lt_t orig_cost; | 278 | lt_t orig_cost; |
279 | struct color_ctrl_page *color_ctrl_page; | 279 | struct color_ctrl_page *color_ctrl_page; |
280 | #ifdef CONFIG_ARCH_NEEDS_UNCACHED_CONTROL_PAGE | ||
281 | void *color_ctrl_page_orig; | ||
282 | #endif | ||
280 | struct dgl_group_req *req; | 283 | struct dgl_group_req *req; |
281 | }; | 284 | }; |
282 | 285 | ||