diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-03-08 11:48:51 -0400 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-03-08 11:48:51 -0400 | 
| commit | dba58e39ced7af63f2748d12bbb2b4ac83c72391 (patch) | |
| tree | ee15a5e7667b51d0d0f7e8cb39064652f7c84c28 /kernel/exit.c | |
| parent | 9de36825b321fe9fe9cf73260554251af579f4ca (diff) | |
| parent | 78ff7fae04554b49d29226ed12536268c2500d1f (diff) | |
Merge branches 'tracing/doc', 'tracing/ftrace', 'tracing/printk' and 'tracing/textedit' into tracing/core
Diffstat (limited to 'kernel/exit.c')
| -rw-r--r-- | kernel/exit.c | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/kernel/exit.c b/kernel/exit.c index efd30ccf3858..167e1e3ad7c6 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
| @@ -980,12 +980,9 @@ static void check_stack_usage(void) | |||
| 980 | { | 980 | { | 
| 981 | static DEFINE_SPINLOCK(low_water_lock); | 981 | static DEFINE_SPINLOCK(low_water_lock); | 
| 982 | static int lowest_to_date = THREAD_SIZE; | 982 | static int lowest_to_date = THREAD_SIZE; | 
| 983 | unsigned long *n = end_of_stack(current); | ||
| 984 | unsigned long free; | 983 | unsigned long free; | 
| 985 | 984 | ||
| 986 | while (*n == 0) | 985 | free = stack_not_used(current); | 
| 987 | n++; | ||
| 988 | free = (unsigned long)n - (unsigned long)end_of_stack(current); | ||
| 989 | 986 | ||
| 990 | if (free >= lowest_to_date) | 987 | if (free >= lowest_to_date) | 
| 991 | return; | 988 | return; | 
