aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_cedf.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_cedf.c')
-rw-r--r--litmus/sched_cedf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c
index 111e4fb1c62b..8c9513d33f59 100644
--- a/litmus/sched_cedf.c
+++ b/litmus/sched_cedf.c
@@ -708,7 +708,8 @@ static long cedf_activate_plugin(void)
708 if (cpumask_test_cpu(cpu, cedf[j].cpu_map)) 708 if (cpumask_test_cpu(cpu, cedf[j].cpu_map))
709 break; 709 break;
710 /* if it is in a cluster go to next cpu */ 710 /* if it is in a cluster go to next cpu */
711 if (cpumask_test_cpu(cpu, cedf[j].cpu_map)) 711 if (j < num_clusters &&
712 cpumask_test_cpu(cpu, cedf[j].cpu_map))
712 continue; 713 continue;
713 714
714 /* this cpu isn't in any cluster */ 715 /* this cpu isn't in any cluster */