[IA64] kdump: Short path to freeze CPUs
authorHidetoshi Seto <[seto.hidetoshi@jp.fujitsu.com]>
Thu, 6 Aug 2009 21:51:58 +0000 (14:51 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 14 Sep 2009 23:19:24 +0000 (16:19 -0700)
commit0cced40e7c58b1105aef3ca446da7b158a18a9a6
tree401e554f0e69375833e6ef70651eacb44ed50909
parent5959906ee9dee602a46e49c868a7e543e050d605
[IA64] kdump: Short path to freeze CPUs

Setting monarch_cpu = -1 to let slaves frozen might not work, because
there might be slaves being late, not entered the rendezvous yet.
Such slaves might be caught in while (monarch_cpu == -1) loop.

Use kdump_in_progress instead of monarch_cpus to break INIT rendezvous
and let all slaves enter DIE_INIT_SLAVE_LEAVE smoothly.

And monarch no longer need to manage rendezvous if once kdump_in_progress
is set, catch the monarch in DIE_INIT_MONARCH_ENTER then.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Haren Myneni <hbabu@us.ibm.com>
Cc: kexec@lists.infradead.org
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/crash.c
arch/ia64/kernel/mca.c