diff options
author | Matt Evans <matt@ozlabs.org> | 2010-06-07 21:38:18 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-06-15 15:02:33 +1000 |
commit | b636f1379eefe6eba931deaa386605bc7ac623e7 (patch) | |
tree | 482289c45853b5f86f264dd8f98b0f70c94fa4d5 /arch/powerpc/include | |
parent | 65cf840ff4b63852d34d577d559978ccfc554a6c (diff) |
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 <matt@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
0 files changed, 0 insertions, 0 deletions