diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-02 13:03:55 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-02-19 15:33:40 -0500 |
commit | aab8d4a55840b785d0344c354fb5f4eed171803c (patch) | |
tree | e9a35ab67492cbe71ebace5bc69e5d857df9a4d8 /litmus | |
parent | c7d7785f33384d0843800e8a97d23e4fa2663977 (diff) |
Verbose admission test for CFL-split
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/sched_cfl_split.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/litmus/sched_cfl_split.c b/litmus/sched_cfl_split.c index af2b28230c72..ad398470a495 100644 --- a/litmus/sched_cfl_split.c +++ b/litmus/sched_cfl_split.c | |||
@@ -847,8 +847,14 @@ static void cflsplit_task_exit(struct task_struct * t) | |||
847 | 847 | ||
848 | static long cflsplit_admit_task(struct task_struct* tsk) | 848 | static long cflsplit_admit_task(struct task_struct* tsk) |
849 | { | 849 | { |
850 | return (remote_cluster(task_cpu(tsk)) == task_cpu_cluster(tsk)) ? | 850 | if (remote_cluster(task_cpu(tsk)) != task_cpu_cluster(tsk)) { |
851 | 0 : -EINVAL; | 851 | unsigned int assigned_cpu = get_partition(tsk); |
852 | unsigned int cur_cpu = task_cpu(tsk); | ||
853 | TRACE_TASK(tsk, "cluster mismatch: assigned cpu %u but on cpu %u\n", | ||
854 | assigned_cpu, cur_cpu); | ||
855 | return -EINVAL; | ||
856 | } | ||
857 | return 0; | ||
852 | } | 858 | } |
853 | 859 | ||
854 | /* total number of cluster */ | 860 | /* total number of cluster */ |