From: Anton Blanchard Date: Wed, 30 Nov 2011 00:23:17 +0000 (+0000) Subject: powerpc/kdump: Only save CPU state first time through the secondary CPU capture code X-Git-Tag: v3.3-rc1~181^2~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2440c01e10f07adcbc2094ba12ae4ad6094bd2b6;p=pandora-kernel.git powerpc/kdump: Only save CPU state first time through the secondary CPU capture code We might enter the secondary CPU capture code twice, eg if we have to unstick some CPUs with a system reset. In this case we don't want to overwrite the state on CPUs that had made it into the capture code OK, so use the cpus_state_saved cpumask for that and make it local to crash_ipi_callback. For controlling progress now use atomic_t cpus_in_crash to count how many CPUs have made it into the kdump code, and time_to_dump to tell everyone it's time to dump. Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed