]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/exit.c
Merge branch 'core/percpu' into x86/core
[linux-2.6-omap-h63xx.git] / kernel / exit.c
index f80dec3f1875db702b7729cdf91e4d2931cfcbbf..70612c19ac96b92ca575ec8a5f67e7df0d2fecb9 100644 (file)
@@ -977,12 +977,9 @@ static void check_stack_usage(void)
 {
        static DEFINE_SPINLOCK(low_water_lock);
        static int lowest_to_date = THREAD_SIZE;
-       unsigned long *n = end_of_stack(current);
        unsigned long free;
 
-       while (*n == 0)
-               n++;
-       free = (unsigned long)n - (unsigned long)end_of_stack(current);
+       free = stack_not_used(current);
 
        if (free >= lowest_to_date)
                return;