From: Matt Evans Date: Mon, 7 Jun 2010 21:38:18 +0000 (+0000) Subject: powerpc/kexec: Wait for online/possible CPUs only. X-Git-Tag: v2.6.35-rc4~69^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b636f1379eefe6eba931deaa386605bc7ac623e7;p=pandora-kernel.git powerpc/kexec: Wait for online/possible CPUs only. kexec_perpare_cpus_wait() iterates i through NR_CPUS to check paca[i].kexec_state of each to make sure they have quiesced. However now we have dynamic PACA allocation, paca[NR_CPUS] is not necessarily valid and we overrun the array; spurious "cpu is not possible, ignoring" errors result. This patch iterates for_each_online_cpu so stays within the bounds of paca[] -- and every CPU is now 'possible'. Signed-off-by: Matt Evans Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed