aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--litmus/sched_npsf.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/litmus/sched_npsf.c b/litmus/sched_npsf.c
index 9eb6662e7ae8..aad99c7e447c 100644
--- a/litmus/sched_npsf.c
+++ b/litmus/sched_npsf.c
@@ -794,12 +794,18 @@ static long npsf_admit_task(struct task_struct* tsk)
794 cpu_entry_t *entry = task_entry(tsk); 794 cpu_entry_t *entry = task_entry(tsk);
795 int id_ok = 0; 795 int id_ok = 0;
796 796
797 if (!atomic_read(&all_servers_added)) 797 if (!atomic_read(&all_servers_added)) {
798 printk(KERN_DEBUG "not all servers added\n");
798 return -ENODEV; 799 return -ENODEV;
800 }
799 801
800 /* check to be on the right cpu and on the right server */ 802 /* check to be on the right cpu and on the right server */
801 if (task_cpu(tsk) != tsk->rt_param.task_params.cpu) 803 if (task_cpu(tsk) != tsk->rt_param.task_params.cpu) {
804 printk(KERN_DEBUG "wrong CPU(%d, %d, %d) for npsf_id %d\n",
805 task_cpu(tsk), tsk->rt_param.task_params.cpu,
806 entry->cpu, task_npsfid(tsk));
802 return -EINVAL; 807 return -EINVAL;
808 }
803 809
804 /* 1) this cpu should have the proper npsf_id in the list 810 /* 1) this cpu should have the proper npsf_id in the list
805 * 2) the rt_domain for the proper npsf_id is not null 811 * 2) the rt_domain for the proper npsf_id is not null
@@ -810,6 +816,9 @@ static long npsf_admit_task(struct task_struct* tsk)
810 break; 816 break;
811 } 817 }
812 } 818 }
819 if (!id_ok)
820 printk(KERN_DEBUG "wrong npsf_id (%d) for entry %d\n",
821 task_npsfid(tsk), entry->cpu);
813 822
814 return id_ok ? 0 : -EINVAL; 823 return id_ok ? 0 : -EINVAL;
815} 824}