From: Vivek Goyal Date: Sat, 25 Jun 2005 21:58:14 +0000 (-0700) Subject: [PATCH] Kexec: Kexec on panic fix with nmi watchdog enabled X-Git-Tag: v2.6.13-rc1~68^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ea8ac8468f5c7fc65684331dfba3260d5b2d93;p=pandora-kernel.git [PATCH] Kexec: Kexec on panic fix with nmi watchdog enabled o Problem: Kexec on panic hangs if first kernel is booted with nmi_watchdog command line parameter. This problem occurs because kexec crash shutdown code replaces the NMI callback handler. This handler saves the cpu register states and halts the cpu. If system is booted with nmi_watchdog parameter, then crashing cpu also runs this nmi handler and halts itself. o This patch fixes the problem by keeping a track of crashing cpu and not executing the new nmi handler on crashing cpu. o There is a dependence on smp_processor_id() function which might return insane value for cpu, if cpu field of thread_info is corrupted. Signed-off-by: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed