Messages in this thread Patch in this message | | | From | Yong Zhang <> | Subject | [PATCH 2/5] sched: hide cfs_rq of autogroup if autogroup is disabled | Date | Sun, 20 Feb 2011 15:08:13 +0800 |
| |
When autogroup is disabled, sched_debug will show all of the cfs_rq of autogroup by name "cfs_rq[0]:" Actually that doesn't make sense and not necessary to be showed.
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> --- kernel/sched_debug.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c index eb6cb8e..121e2a2 100644 --- a/kernel/sched_debug.c +++ b/kernel/sched_debug.c @@ -169,6 +169,12 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq) struct sched_entity *last; unsigned long flags; +#ifdef CONFIG_SCHED_AUTOGROUP + int enabled = ACCESS_ONCE(sysctl_sched_autogroup_enabled); + + if (task_group_is_autogroup(cfs_rq->tg) && !enabled) + return; +#endif #ifdef CONFIG_FAIR_GROUP_SCHED SEQ_printf(m, "\ncfs_rq[%d]:%s\n", cpu, task_group_path(cfs_rq->tg)); #else -- 1.7.1
| |