powerpc/85xx: Make kexec to interate over online cpus
authorMatthew McClintock <msm@freescale.com>
Tue, 25 Oct 2011 22:54:04 +0000 (17:54 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 3 Nov 2011 18:12:29 +0000 (13:12 -0500)
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>
arch/powerpc/platforms/85xx/smp.c

index 190d111fc117db57dea48271e591c9fa687fe427..2df4785ffd4ee3d0307190247f6398190810525a 100644 (file)
@@ -207,7 +207,7 @@ static void mpc85xx_smp_machine_kexec(struct kimage *image)
        if ( !timeout )
                printk(KERN_ERR "Unable to bring down secondary cpu(s)");
 
-       for (i = 0; i < num_cpus; i++)
+       for_each_online_cpu(i)
        {
                if ( i == smp_processor_id() ) continue;
                mpic_reset_core(i);