diff options
-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 */ |