]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] sched: get rid of p->children use in show_task()
authorIngo Molnar <mingo@elte.hu>
Fri, 6 Apr 2007 19:18:06 +0000 (21:18 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 7 Apr 2007 17:06:51 +0000 (10:06 -0700)
commit35f6f753b79705bc4b62da5dcc218d75ffa88370
treefae64e1ebcc00b2768689a3e24f956ce0a431513
parent7f30e49ee1c2c1e95ce9d2ccce5221ddb793dd60
[PATCH] sched: get rid of p->children use in show_task()

the p->parent PID printout gives us all the information about the
task tree that we need - the eldest_child()/older_sibling()/
younger_sibling() printouts are mostly historic and i do not
remember ever having used those fields. (IMO in fact they confuse
the SysRq-T output.) So remove them.

This code has sentimental value though, those fields and
printouts are one of the oldest ones still surviving from
Linux v0.95's kernel/sched.c:

        if (p->p_ysptr || p->p_osptr)
                printk("   Younger sib=%d, older sib=%d\n\r",
                        p->p_ysptr ? p->p_ysptr->pid : -1,
                        p->p_osptr ? p->p_osptr->pid : -1);
        else
                printk("\n\r");

written 15 years ago, in early 1992.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus 'snif' Torvalds <torvalds@linux-foundation.org>
kernel/sched.c