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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h
index 2112eecd1dc8..a3fd5dd269fc 100644
--- a/include/litmus/litmus.h
+++ b/include/litmus/litmus.h
@@ -129,6 +129,16 @@ void srp_ceiling_block(void);
129 129
130#define bheap2task(hn) ((struct task_struct*) hn->value) 130#define bheap2task(hn) ((struct task_struct*) hn->value)
131 131
132static inline struct control_page* get_control_page(struct task_struct *t)
133{
134 return tsk_rt(t)->ctrl_page;
135}
136
137static inline int has_control_page(struct task_struct* t)
138{
139 return tsk_rt(t)->ctrl_page != NULL;
140}
141
132#ifdef CONFIG_NP_SECTION 142#ifdef CONFIG_NP_SECTION
133 143
134static inline int is_kernel_np(struct task_struct *t) 144static inline int is_kernel_np(struct task_struct *t)