aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2011-10-25 18:54:04 -0400
committerKumar Gala <galak@kernel.crashing.org>2011-11-03 14:12:29 -0400
commit43a327b79c3945049ccf675452d2d519084c9bc6 (patch)
tree86e693938ac0b5d4fe78799222b1ba93a4473a21 /arch/powerpc
parent7d0d3ad5e3cfbf96aa4a2d6ee26a20c98a29d4a1 (diff)
powerpc/85xx: Make kexec to interate over online cpus
This is not strictly required, because this iterates over logical cpus and they are not (currently) discontigous. But, it's cleaner code and more obvious what is going on Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/85xx/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c
index 190d111fc11..2df4785ffd4 100644
--- a/arch/powerpc/platforms/85xx/smp.c
+++ b/arch/powerpc/platforms/85xx/smp.c
@@ -207,7 +207,7 @@ static void mpc85xx_smp_machine_kexec(struct kimage *image)
207 if ( !timeout ) 207 if ( !timeout )
208 printk(KERN_ERR "Unable to bring down secondary cpu(s)"); 208 printk(KERN_ERR "Unable to bring down secondary cpu(s)");
209 209
210 for (i = 0; i < num_cpus; i++) 210 for_each_online_cpu(i)
211 { 211 {
212 if ( i == smp_processor_id() ) continue; 212 if ( i == smp_processor_id() ) continue;
213 mpic_reset_core(i); 213 mpic_reset_core(i);