aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-11-01 19:47:18 -0400
committerIngo Molnar <mingo@kernel.org>2016-11-03 02:31:34 -0400
commit8243d5597793b5e85143c9a935e1b971c59740a9 (patch)
treee173f297363ee0fc5400ba660a40faea57d246ad
parent382005027fedc50b28d40ae64ef1461cca38953e (diff)
sched/core: Remove pointless printout in sched_show_task()
In sched_show_task() we print out a useless hex number, not even a symbol, and there's a big question mark whether this even makes sense anyway, I suspect we should just remove it all. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Acked-by: Andy Lutomirski <luto@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: bp@alien8.de Cc: brgerst@gmail.com Cc: jann@thejh.net Cc: keescook@chromium.org Cc: linux-api@vger.kernel.org Cc: tycho.andersen@canonical.com Link: http://lkml.kernel.org/r/CA+55aFzphURPFzAvU4z6Moy7ZmimcwPuUdYU8bj9z0J+S8X1rw@mail.gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--kernel/sched/core.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 9abf66b6c271..154fd689fe02 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5198,17 +5198,8 @@ void sched_show_task(struct task_struct *p)
5198 state = __ffs(state) + 1; 5198 state = __ffs(state) + 1;
5199 printk(KERN_INFO "%-15.15s %c", p->comm, 5199 printk(KERN_INFO "%-15.15s %c", p->comm,
5200 state < sizeof(stat_nam) - 1 ? stat_nam[state] : '?'); 5200 state < sizeof(stat_nam) - 1 ? stat_nam[state] : '?');
5201#if BITS_PER_LONG == 32
5202 if (state == TASK_RUNNING)
5203 printk(KERN_CONT " running ");
5204 else
5205 printk(KERN_CONT " %08lx ", thread_saved_pc(p));
5206#else
5207 if (state == TASK_RUNNING) 5201 if (state == TASK_RUNNING)
5208 printk(KERN_CONT " running task "); 5202 printk(KERN_CONT " running task ");
5209 else
5210 printk(KERN_CONT " %016lx ", thread_saved_pc(p));
5211#endif
5212#ifdef CONFIG_DEBUG_STACK_USAGE 5203#ifdef CONFIG_DEBUG_STACK_USAGE
5213 free = stack_not_used(p); 5204 free = stack_not_used(p);
5214#endif 5205#endif