diff options
Diffstat (limited to 'include/litmus/sched_mc.h')
-rw-r--r-- | include/litmus/sched_mc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/litmus/sched_mc.h b/include/litmus/sched_mc.h index 740cc11be5d7..8cdec04c64df 100644 --- a/include/litmus/sched_mc.h +++ b/include/litmus/sched_mc.h | |||
@@ -31,6 +31,14 @@ struct mc_data { | |||
31 | struct mc_job mc_job; | 31 | struct mc_job mc_job; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | /* Leave a CPU free for tracing stuff */ | ||
35 | #if CONFIG_FTRACE_CPU != NO_CPU | ||
36 | extern struct cpumask rt_mask; | ||
37 | #define for_each_rt_cpu(cpu) for_each_cpu((cpu), &rt_mask) | ||
38 | #else | ||
39 | #define for_each_rt_cpu(cpu) for_each_online_cpu(cpu) | ||
40 | #endif | ||
41 | |||
34 | #define tsk_mc_data(t) (tsk_rt(t)->mc_data) | 42 | #define tsk_mc_data(t) (tsk_rt(t)->mc_data) |
35 | #define tsk_mc_crit(t) (tsk_mc_data(t)->mc_task.crit) | 43 | #define tsk_mc_crit(t) (tsk_mc_data(t)->mc_task.crit) |
36 | #define is_ghost(t) (tsk_mc_data(t)->mc_job.is_ghost) | 44 | #define is_ghost(t) (tsk_mc_data(t)->mc_job.is_ghost) |