diff options
Diffstat (limited to 'litmus/sched_mc.c')
-rw-r--r-- | litmus/sched_mc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/litmus/sched_mc.c b/litmus/sched_mc.c index 64de4ef9c46..6edf86935a2 100644 --- a/litmus/sched_mc.c +++ b/litmus/sched_mc.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <litmus/dgl.h> | 30 | #include <litmus/dgl.h> |
31 | #include <litmus/color.h> | 31 | #include <litmus/color.h> |
32 | #include <litmus/way_tracker.h> | 32 | #include <litmus/way_tracker.h> |
33 | 33 | #warning "MUST ADD CHECK FOR MAX WAYS" | |
34 | struct mc_signal { | 34 | struct mc_signal { |
35 | int update:1; | 35 | int update:1; |
36 | int preempt:1; | 36 | int preempt:1; |
@@ -58,6 +58,10 @@ struct cpu_entry { | |||
58 | #endif | 58 | #endif |
59 | }; | 59 | }; |
60 | 60 | ||
61 | #ifndef CONFIG_NP_SECTION | ||
62 | #error "Need NP section for coloring!" | ||
63 | #endif | ||
64 | |||
61 | static struct dgl group_lock; | 65 | static struct dgl group_lock; |
62 | static raw_spinlock_t dgl_lock; | 66 | static raw_spinlock_t dgl_lock; |
63 | 67 | ||
@@ -97,7 +101,6 @@ static int acquire_resources(struct task_struct *t) | |||
97 | 101 | ||
98 | BUG_ON(tsk_rt(t)->linked_on == NO_CPU); | 102 | BUG_ON(tsk_rt(t)->linked_on == NO_CPU); |
99 | 103 | ||
100 | |||
101 | raw_spin_lock(&dgl_lock); | 104 | raw_spin_lock(&dgl_lock); |
102 | 105 | ||
103 | cpu = tsk_rt(t)->linked_on; | 106 | cpu = tsk_rt(t)->linked_on; |