From 841d6482cc4b0706f307f36ce1fe3f3f6963fd41 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Thu, 28 Jul 2011 16:48:11 -0400 Subject: GSN-EDF & Core: improve debug TRACE'ing for NP sections --- litmus/sched_gsn_edf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'litmus/sched_gsn_edf.c') diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c index dffea128739f..9debea981419 100644 --- a/litmus/sched_gsn_edf.c +++ b/litmus/sched_gsn_edf.c @@ -266,8 +266,8 @@ static void check_for_preemptions(void) last = lowest_prio_cpu()) { /* preemption necessary */ task = __take_ready(&gsnedf); - TRACE("check_for_preemptions: attempting to link task %d to %d\n", - task->pid, last->cpu); + TRACE_TASK(task, "attempting to link to P%d\n", + last->cpu); if (last->linked) requeue(last->linked); link_task_to_cpu(task, last); @@ -409,7 +409,7 @@ static struct task_struct* gsnedf_schedule(struct task_struct * prev) "state:%d sig:%d\n", blocks, out_of_time, np, sleep, preempt, prev->state, signal_pending(prev)); - if (entry->linked && preempt) + if (entry->linked && preempt && !np) TRACE_TASK(prev, "will be preempted by %s/%d\n", entry->linked->comm, entry->linked->pid); -- cgit v1.2.2