X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fexit.c;h=167e1e3ad7c61f5c0a73db9dc457c30a97527a91;hb=6ac206c85233eb89533647f5fdc5ebe07320c5e5;hp=efd30ccf38584f48c6ef68da62b9236479b6da69;hpb=f1c7404e37a8970bd58cc10a6d96534d42b9aac6;p=linux-2.6-omap-h63xx.git diff --git a/kernel/exit.c b/kernel/exit.c index efd30ccf385..167e1e3ad7c 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -980,12 +980,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;