diff options
author | Matthew McClintock <msm@freescale.com> | 2011-10-26 00:54:04 +0200 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-03 19:12:29 +0100 |
commit | 43a327b79c3945049ccf675452d2d519084c9bc6 (patch) | |
tree | 86e693938ac0b5d4fe78799222b1ba93a4473a21 /arch/powerpc/platforms | |
parent | powerpc/fsl_booke: Fix comment in head_fsl_booke.S (diff) | |
download | linux-43a327b79c3945049ccf675452d2d519084c9bc6.tar.xz linux-43a327b79c3945049ccf675452d2d519084c9bc6.zip |
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/platforms')
-rw-r--r-- | arch/powerpc/platforms/85xx/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c index 190d111fc117..2df4785ffd4e 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) 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); |