From 04873371d489603edb52cf723ebed322c6c80d74 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Mon, 5 May 2008 14:28:51 -0400 Subject: LITMUS: don't invoke plugin for non-real-time tasks The plugins don't care about best-effort tasks. Don't bother them. --- litmus/sched_litmus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litmus/sched_litmus.c b/litmus/sched_litmus.c index ab52ae9510..0e6cde6e1f 100644 --- a/litmus/sched_litmus.c +++ b/litmus/sched_litmus.c @@ -79,7 +79,7 @@ static void litmus_schedule(struct rq *rq, struct task_struct *prev) } double_rq_lock(rq, other_rq); - if (prev->state != prev_state) { + if (prev->state != prev_state && is_realtime(prev)) { TRACE_TASK(prev, "state changed while we dropped" " the lock: now=%d, old=%d\n", -- cgit v1.2.2