summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-01-25 21:08:03 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-25 21:08:03 +0100
commit63489e45e265f64c368882be1f01c42dec5d984c (patch)
treed228ccbe22bc421c36455c7e05480247a4a8d2b1 /kernel/sched.c
parent82a1fcb90287052aabfa235e7ffc693ea003fe69 (diff)
downloadop-kernel-dev-63489e45e265f64c368882be1f01c42dec5d984c.zip
op-kernel-dev-63489e45e265f64c368882be1f01c42dec5d984c.tar.gz
sched: count # of queued RT tasks
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>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5b3d465..9dd8d12 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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;
};
/*
OpenPOWER on IntegriCloud