diff options
Diffstat (limited to 'include/litmus/rt_param.h')
-rw-r--r-- | include/litmus/rt_param.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h index d63821d9467a..1f624a14f6f2 100644 --- a/include/litmus/rt_param.h +++ b/include/litmus/rt_param.h | |||
@@ -97,19 +97,6 @@ struct control_page { | |||
97 | int colors_updated:8; | 97 | int colors_updated:8; |
98 | }; | 98 | }; |
99 | 99 | ||
100 | #ifndef __KERNEL__ | ||
101 | /* | ||
102 | * XXX This is a terrible hack so liblitmus can use the PAGE_SIZE macro. | ||
103 | * We should fix liblitmus to do setup the page size at runtime. | ||
104 | */ | ||
105 | #define CACHE_LINE_SIZE 64 | ||
106 | #if (ARCH == x86_64) | ||
107 | #define PAGE_SIZE 4096 | ||
108 | #elif (ARCH == sparc64) | ||
109 | #define PAGE_SIZE 8192 | ||
110 | #endif | ||
111 | #endif /* ifndef __KERNEL__ */ | ||
112 | |||
113 | typedef uint8_t color_t; | 100 | typedef uint8_t color_t; |
114 | #define COLORS_PER_CONTROL_PAGE (PAGE_SIZE / (2 * sizeof(color_t))) | 101 | #define COLORS_PER_CONTROL_PAGE (PAGE_SIZE / (2 * sizeof(color_t))) |
115 | struct color_ctrl_page { | 102 | struct color_ctrl_page { |