From: Zhu Yanhai <gaoyang....@taobao.com>

I can't see why the check was removed by commit b32e86b4. Since it was not
relevant to the subject of the commit, I guess it was just a plain typo.

Signed-off-by: Zhu Yanhai <gaoyang....@taobao.com>
---
 kernel/sched/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 2a0a999..ee1ca70 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -456,7 +456,7 @@ static void print_rq(struct seq_file *m, struct rq *rq, int 
rq_cpu)
 
        rcu_read_lock();
        for_each_process_thread(g, p) {
-               if (task_cpu(p) != rq_cpu)
+               if (!p->se.on_rq || task_cpu(p) != rq_cpu)
                        continue;
 
                print_task(m, rq, p);
-- 
2.5.5




Reply via email to