aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
Diffstat (limited to 'litmus')
-rw-r--r--litmus/sched_cedf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c
index 8c9513d33f59..e815e31b1d84 100644
--- a/litmus/sched_cedf.c
+++ b/litmus/sched_cedf.c
@@ -587,7 +587,9 @@ static void cedf_task_exit(struct task_struct * t)
587 raw_spin_lock_irqsave(&cluster->lock, flags); 587 raw_spin_lock_irqsave(&cluster->lock, flags);
588 unlink(t); 588 unlink(t);
589 if (tsk_rt(t)->scheduled_on != NO_CPU) { 589 if (tsk_rt(t)->scheduled_on != NO_CPU) {
590 cluster->cpus[tsk_rt(t)->scheduled_on]->scheduled = NULL; 590 cpu_entry_t *cpu;
591 cpu = &per_cpu(cedf_cpu_entries, tsk_rt(t)->scheduled_on);
592 cpu->scheduled = NULL;
591 tsk_rt(t)->scheduled_on = NO_CPU; 593 tsk_rt(t)->scheduled_on = NO_CPU;
592 } 594 }
593 raw_spin_unlock_irqrestore(&cluster->lock, flags); 595 raw_spin_unlock_irqrestore(&cluster->lock, flags);