sched: count # of queued RT tasks
authorSteven Rostedt <srostedt@redhat.com>
Fri, 25 Jan 2008 20:08:03 +0000 (21:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:03 +0000 (21:08 +0100)
This patch adds accounting to keep track of the number of RT tasks running
on a runqueue. This information will be used in later patches.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
kernel/sched_rt.c

index 5b3d465..9dd8d12 100644 (file)
@@ -342,6 +342,7 @@ struct rt_rq {
        struct rt_prio_array active;
        int rt_load_balance_idx;
        struct list_head *rt_load_balance_head, *rt_load_balance_curr;
+       unsigned long rt_nr_running;
 };
 
 /*
Simple merge