projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
931aeed
)
sched: Wrap the 'cfs_rq->nr_spread_over' field with CONFIG_SCHED_DEBUG
author
Rakib Mullick
<rakib.mullick@gmail.com>
Wed, 4 May 2011 16:53:46 +0000
(22:53 +0600)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 6 May 2011 07:04:19 +0000
(09:04 +0200)
cfs_rq->nr_spread_over is only used when CONFIG_SCHED_DEBUG is set.
So wrap it with CONFIG_SCHED_DEBUG.
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link:
http://lkml.kernel.org/r/1304528026.15681.3.camel@localhost.localdomain
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index f11a2a5d03aa726bda0455003ea83d01aee34d75..3d8a1b2680eea1fca26c06c6a7f4e2e3920a398b 100644
(file)
--- 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 */