aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2007-10-15 11:00:10 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:10 -0400
commitddc972975091ba5f839bf24d0f9ef54fe90ee741 (patch)
tree438406a2930bdcb36c8a1bc6778aab49e1fba36d /kernel/sched.c
parentd822cecedad88b69a7d68aa8d49e1f238aa320c7 (diff)
sched debug: check spread
debug feature: check how well we schedule within a reasonable vruntime 'spread' range. (note that CPU overload can increase the spread, so this is not a hard condition, but normal loads should be within the spread.) Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index fe1165b226a1..213294fdcd0f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -250,6 +250,9 @@ struct cfs_rq {
250 * It is set to NULL otherwise (i.e when none are currently running). 250 * It is set to NULL otherwise (i.e when none are currently running).
251 */ 251 */
252 struct sched_entity *curr; 252 struct sched_entity *curr;
253
254 unsigned long nr_spread_over;
255
253#ifdef CONFIG_FAIR_GROUP_SCHED 256#ifdef CONFIG_FAIR_GROUP_SCHED
254 struct rq *rq; /* cpu runqueue to which this cfs_rq is attached */ 257 struct rq *rq; /* cpu runqueue to which this cfs_rq is attached */
255 258