[PATCH] sched: Wrap nr_spread_over with CONFIG_SCHED_DEBUG.

From: Rakib Mullick
Date: Wed May 04 2011 - 12:53:56 EST


nr_spread_over is used when CONFIG_SCHED_DEBUG is set. So wrap nr_spread_over with CONFIG_SCHED_DEBUG.

Signed-off-by: Rakib Mullick <rakib.mullick@xxxxxxxxx>
---

diff --git a/kernel/sched.c b/kernel/sched.c
index 8cb0a57..0b91adf 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -328,7 +328,9 @@ struct cfs_rq {
*/
struct sched_entity *curr, *next, *last, *skip;

+#ifdef CONFIG_SCHED_DEBUG
unsigned int nr_spread_over;
+#endif

#ifdef CONFIG_FAIR_GROUP_SCHED
struct rq *rq; /* cpu runqueue to which this cfs_rq is attached */


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/