x86_64: fix the check in stack_overflow_check
authorjia zhang <jia.zhang2008@gmail.com>
Sun, 23 Nov 2008 01:51:41 +0000 (09:51 +0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 07:57:42 +0000 (08:57 +0100)
Impact: make stack overflow debug check and printout narrower

stack_overflow_check() should consider the stack usage of pt_regs, and
thus it could warn us in advance. Additionally, it looks better for
the warning time to start at INITIAL_JIFFIES.

Assuming that rsp gets close to the check point before interrupt
arrives: when interrupt really happens, thread_info will be partly
overrode.

Signed-off-by: jia zhang <jia.zhang2008@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/irq_64.c

Simple merge