Skip to contentSkip to conversation

sched: Wrap nr_spread_over with CONFIG_SCHED_DEBUG.

PATCH In review Rakib Mullick 1 participant 2 messages May 4, 2011 – May 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: Wrap nr_spread_over with CONFIG_SCHED_DEBUG.

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

---

kernel/sched.c +2 -0
index 8cb0a57..0b91adf 100644
@@ -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 */
#1 lore raw

[tip:sched/core] sched: Wrap the 'cfs_rq->nr_spread_over' field with CONFIG_SCHED_DEBUG

Commit-ID:  4934a4d3d3fa775601a9f1b35cc0e2aa93f81355
Gitweb:     http://git.kernel.org/tip/4934a4d3d3fa775601a9f1b35cc0e2aa93f81355
Author:     Rakib Mullick <[email protected]>
AuthorDate: Wed, 4 May 2011 22:53:46 +0600
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 6 May 2011 09:04:19 +0200

sched: Wrap the 'cfs_rq->nr_spread_over' field with CONFIG_SCHED_DEBUG

cfs_rq->nr_spread_over is only used when CONFIG_SCHED_DEBUG is set. So wrap it with CONFIG_SCHED_DEBUG.

---
 kernel/sched.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/sched.c +2 -0
index f11a2a5..3d8a1b2 100644
@@ -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 */