From: jia zhang Date: Sun, 23 Nov 2008 01:51:41 +0000 (+0800) Subject: x86_64: fix the check in stack_overflow_check X-Git-Tag: v2.6.29-rc1~587^2~4^6~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aeb95d5b7839708a8d8e11aa274ee4d0d4042cc;p=pandora-kernel.git x86_64: fix the check in stack_overflow_check 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed