Message ID | 1319583246-6120-3-git-send-email-msm@freescale.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Kumar Gala |
Headers | show |
On Oct 25, 2011, at 5:54 PM, Matthew McClintock wrote: > 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> > --- > arch/powerpc/platforms/85xx/smp.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) applied - k
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c index 5b9b901..b830f8a 100644 --- a/arch/powerpc/platforms/85xx/smp.c +++ b/arch/powerpc/platforms/85xx/smp.c @@ -206,7 +206,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);
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> --- arch/powerpc/platforms/85xx/smp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)