提交 01aaed9d 编写于 作者: H Haren Myneni 提交者: Paul Mackerras

[PATCH] powerpc: Trivial fix to set the proper timeout value for kdump

The panic CPU is waiting forever due to some large timeout value if some
CPU is not responding to an IPI.
This patch fixes the problem - the maximum waiting period will be
10 seconds and then the kdump boot will go ahead.
Signed-off-by: NHaren Myneni <haren@us.ibm.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 c57914a4
...@@ -134,8 +134,10 @@ static void crash_kexec_prepare_cpus(void) ...@@ -134,8 +134,10 @@ static void crash_kexec_prepare_cpus(void)
* the crash CPU will send an IPI and wait for other CPUs to * the crash CPU will send an IPI and wait for other CPUs to
* respond. If not, proceed the kexec boot even though we failed to * respond. If not, proceed the kexec boot even though we failed to
* capture other CPU states. * capture other CPU states.
* Delay of at least 10 seconds.
*/ */
msecs = 1000000; printk(KERN_ALERT "Sending IPI to other cpus...\n");
msecs = 10000;
while ((atomic_read(&waiting_for_crash_ipi) > 0) && (--msecs > 0)) { while ((atomic_read(&waiting_for_crash_ipi) > 0) && (--msecs > 0)) {
barrier(); barrier();
mdelay(1); mdelay(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册