Patch for show_task

Pete Zaitcev (zaitcev@redhat.com)
Fri, 4 Apr 2003 01:38:29 -0500


Andrew, bkbits says you changed the line above to be p->thread_info.
Unfortunately, there's another.

--- linux-2.5.66/kernel/sched.c 2003-03-24 14:01:16.000000000 -0800
+++ linux-2.5.66-sparc/kernel/sched.c 2003-04-03 22:33:29.000000000 -0800
@@ -2197,7 +2197,7 @@
unsigned long * n = (unsigned long *) (p->thread_info+1);
while (!*n)
n++;
- free = (unsigned long) n - (unsigned long)(p+1);
+ free = (unsigned long) n - (unsigned long) (p->thread_info+1);
}
printk("%5lu %5d %6d ", free, p->pid, p->parent->pid);
if ((relative = eldest_child(p)))

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/