diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-04-19 10:56:12 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-04-19 10:56:12 -0400 |
commit | 9c942ebab15612c6a704a3b6a437543cd5df24c3 (patch) | |
tree | 7e53986937e0ecabfc2e6070e0df85037b3d152a | |
parent | 0c35f7af8bba0a06c5b307e71549cbae3d3ff171 (diff) |
C-EDF: enforce that task is on correct CPU.
This makes sure that it will end up in the correct cluster.
-rw-r--r-- | litmus/sched_cedf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c index fba4fd5b2a59..da44b451c9ad 100644 --- a/litmus/sched_cedf.c +++ b/litmus/sched_cedf.c | |||
@@ -584,7 +584,7 @@ static void cedf_task_exit(struct task_struct * t) | |||
584 | 584 | ||
585 | static long cedf_admit_task(struct task_struct* tsk) | 585 | static long cedf_admit_task(struct task_struct* tsk) |
586 | { | 586 | { |
587 | return 0; | 587 | return task_cpu(tsk) == tsk->rt_param.task_params.cpu ? 0 : -EINVAL; |
588 | } | 588 | } |
589 | 589 | ||
590 | /* total number of cluster */ | 590 | /* total number of cluster */ |