scheduler: compute time-average nr_running per run-queue
[linux-2.6.git] / kernel / sched_debug.c
index a6710a1..6371af0 100644 (file)
@@ -264,6 +264,9 @@ static void print_cpu(struct seq_file *m, int cpu)
        SEQ_printf(m, "  .%-30s: %Ld.%06ld\n", #x, SPLIT_NS(rq->x))
 
        P(nr_running);
+       SEQ_printf(m, "  .%-30s: %d.%03d   \n", "ave_nr_running",
+                  rq->ave_nr_running / FIXED_1,
+                  ((rq->ave_nr_running % FIXED_1) * 1000) / FIXED_1);
        SEQ_printf(m, "  .%-30s: %lu\n", "load",
                   rq->load.weight);
        P(nr_switches);