Skip to content

Commit 8243d55

Browse files
torvaldsIngo Molnar
authored andcommitted
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>
1 parent 3820050 commit 8243d55

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

kernel/sched/core.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5198,17 +5198,8 @@ void sched_show_task(struct task_struct *p)
51985198
state = __ffs(state) + 1;
51995199
printk(KERN_INFO "%-15.15s %c", p->comm,
52005200
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
52075201
if (state == TASK_RUNNING)
52085202
printk(KERN_CONT " running task ");
5209-
else
5210-
printk(KERN_CONT " %016lx ", thread_saved_pc(p));
5211-
#endif
52125203
#ifdef CONFIG_DEBUG_STACK_USAGE
52135204
free = stack_not_used(p);
52145205
#endif

0 commit comments

Comments
 (0)