Merge branch 'x86/urgent' into x86/mm
[linux-2.6.git] / kernel / sched.c
index 8e2558c2ba67be440ef7bcb2d95ff8138c806404..4070cd34effd0e5ebfb25bb91ce82e2aeaeee3e2 100644 (file)
@@ -5944,12 +5944,7 @@ void sched_show_task(struct task_struct *p)
                printk(KERN_CONT " %016lx ", thread_saved_pc(p));
 #endif
 #ifdef CONFIG_DEBUG_STACK_USAGE
-       {
-               unsigned long *n = end_of_stack(p);
-               while (!*n)
-                       n++;
-               free = (unsigned long)n - (unsigned long)end_of_stack(p);
-       }
+       free = stack_not_used(p);
 #endif
        printk(KERN_CONT "%5lu %5d %6d\n", free,
                task_pid_nr(p), task_pid_nr(p->real_parent));