diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2013-03-05 14:38:47 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-03-12 10:15:01 -0400 |
commit | 033356ad3a0a719d52104e63c491d3c33f650ec3 (patch) | |
tree | 70a1bbd6a401b43429ffc4dd316bd4b4bcbbd2c0 /litmus | |
parent | 888d097deb6d1fdc0c89a4f9667fd81cf416cfc7 (diff) |
C-EDF: Cluster-aware admission test.
cedf_admit_task() is too restrictive in that the task
to be admitted must be executing on the same CPU as
is set in the task's task_params. This patch allows
the task to be admitted to be executing on the same
cluter as the CPU set in the task's task_params.
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/sched_cedf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c index b45b46fc4fca..4c2b150fa22d 100644 --- a/litmus/sched_cedf.c +++ b/litmus/sched_cedf.c | |||
@@ -652,7 +652,8 @@ static void cedf_task_exit(struct task_struct * t) | |||
652 | 652 | ||
653 | static long cedf_admit_task(struct task_struct* tsk) | 653 | static long cedf_admit_task(struct task_struct* tsk) |
654 | { | 654 | { |
655 | return task_cpu(tsk) == tsk->rt_param.task_params.cpu ? 0 : -EINVAL; | 655 | return (remote_cluster(task_cpu(tsk)) == task_cpu_cluster(tsk)) ? |
656 | 0 : -EINVAL; | ||
656 | } | 657 | } |
657 | 658 | ||
658 | /* total number of cluster */ | 659 | /* total number of cluster */ |