Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1413556
| From | Josh Poimboeuf <jpoimboe@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/2] sched/debug: always show nr_migrations |
| Date | 2016-06-04 01:00 +0200 |
| Message-ID | <rG6el-KI-1@gated-at.bofh.it> (permalink) |
| References | <rG6el-KI-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The nr_migrations field is updated independently of CONFIG_SCHEDSTATS,
so it can be displayed regardless.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
---
kernel/sched/debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 0368c39..2a0a999 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -879,9 +879,9 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
nr_switches = p->nvcsw + p->nivcsw;
-#ifdef CONFIG_SCHEDSTATS
P(se.nr_migrations);
+#ifdef CONFIG_SCHEDSTATS
if (schedstat_enabled()) {
u64 avg_atom, avg_per_cpu;
--
2.4.11
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 2/2] sched/debug: always show nr_migrations Josh Poimboeuf <jpoimboe@redhat.com> - 2016-06-04 01:00 +0200 Re: [PATCH v2 2/2] sched/debug: always show nr_migrations Mel Gorman <mgorman@techsingularity.net> - 2016-06-07 15:50 +0200 [tip:sched/core] sched/debug: Always show 'nr_migrations' tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-06-08 16:30 +0200
csiph-web