[LITMUS^RT] [PATCH 1/2] Fix changed task_struct field name.

Christopher Kenna cjk at cs.unc.edu
Thu Sep 20 22:54:50 CEST 2012


---
 litmus/sched_litmus.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/litmus/sched_litmus.c b/litmus/sched_litmus.c
index 5a15ce9..6553948 100644
--- a/litmus/sched_litmus.c
+++ b/litmus/sched_litmus.c
@@ -102,9 +102,9 @@ litmus_schedule(struct rq *rq, struct task_struct *prev)
 			}
 		}
 #ifdef  __ARCH_WANT_UNLOCKED_CTXSW
-		if (next->oncpu)
+		if (next->on_cpu)
 			TRACE_TASK(next, "waiting for !oncpu");
-		while (next->oncpu) {
+		while (next->on_cpu) {
 			cpu_relax();
 			mb();
 		}
-- 
1.7.9.5





More information about the litmus-dev mailing list