diff options
author | Tony Luck <tony.luck@intel.com> | 2005-10-28 15:26:43 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-10-28 15:26:43 -0700 |
commit | d73dee6ee4b554074f88e4ebd956ea4db8552d52 (patch) | |
tree | 9f4468c7b54d0796d7659ce3ae30b756217522e9 /arch/ia64/kernel/smp.c | |
parent | 9acd3fa2e10f4e5b093ddf93af8f23cc9bdbd621 (diff) | |
parent | ddf6d0a00cbb4ad6d4fb4200cc911bb9389174c1 (diff) |
Pull for-each-cpu into release branch
Diffstat (limited to 'arch/ia64/kernel/smp.c')
-rw-r--r-- | arch/ia64/kernel/smp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c index 0166a984709..657ac99a451 100644 --- a/arch/ia64/kernel/smp.c +++ b/arch/ia64/kernel/smp.c @@ -185,8 +185,8 @@ send_IPI_allbutself (int op) { unsigned int i; - for (i = 0; i < NR_CPUS; i++) { - if (cpu_online(i) && i != smp_processor_id()) + for_each_online_cpu(i) { + if (i != smp_processor_id()) send_IPI_single(i, op); } } @@ -199,9 +199,9 @@ send_IPI_all (int op) { int i; - for (i = 0; i < NR_CPUS; i++) - if (cpu_online(i)) - send_IPI_single(i, op); + for_each_online_cpu(i) { + send_IPI_single(i, op); + } } /* |