diff options
author | John Calandrino <jmc@cs.unc.edu> | 2008-05-22 00:48:09 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-22 00:42:51 -0400 |
commit | 3e3261bbf150f586df310be84c606c4910aa6501 (patch) | |
tree | add0b165675bedaac112d5b6b8f9c9069085ce6f | |
parent | 71c1eccba179e158ad22eb454ad10df0f3b71a47 (diff) |
C-EDF: Update processor state on task exit
-rwxr-xr-x | litmus/sched_cedf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c index bc29ca4ed4..2ac14cded9 100755 --- a/litmus/sched_cedf.c +++ b/litmus/sched_cedf.c | |||
@@ -636,6 +636,11 @@ static void cedf_task_exit(struct task_struct * t) | |||
636 | /* unlink if necessary */ | 636 | /* unlink if necessary */ |
637 | spin_lock_irqsave(&task_cedf(t)->slock, flags); | 637 | spin_lock_irqsave(&task_cedf(t)->slock, flags); |
638 | unlink(t); | 638 | unlink(t); |
639 | if (tsk_rt(t)->scheduled_on != NO_CPU) { | ||
640 | cedf_cpu_entries_array[tsk_rt(t)->scheduled_on]-> | ||
641 | scheduled = NULL; | ||
642 | tsk_rt(t)->scheduled_on = NO_CPU; | ||
643 | } | ||
639 | spin_unlock_irqrestore(&task_cedf(t)->slock, flags); | 644 | spin_unlock_irqrestore(&task_cedf(t)->slock, flags); |
640 | 645 | ||
641 | BUG_ON(!is_realtime(t)); | 646 | BUG_ON(!is_realtime(t)); |