From 9c942ebab15612c6a704a3b6a437543cd5df24c3 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Mon, 19 Apr 2010 10:56:12 -0400 Subject: C-EDF: enforce that task is on correct CPU. This makes sure that it will end up in the correct cluster. --- litmus/sched_cedf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) static long cedf_admit_task(struct task_struct* tsk) { - return 0; + return task_cpu(tsk) == tsk->rt_param.task_params.cpu ? 0 : -EINVAL; } /* total number of cluster */ -- cgit v1.2.2