summaryrefslogtreecommitdiffstats
path: root/arch/ia64/mm
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-10-28 15:26:43 -0700
committerTony Luck <tony.luck@intel.com>2005-10-28 15:26:43 -0700
commitd73dee6ee4b554074f88e4ebd956ea4db8552d52 (patch)
tree9f4468c7b54d0796d7659ce3ae30b756217522e9 /arch/ia64/mm
parent9acd3fa2e10f4e5b093ddf93af8f23cc9bdbd621 (diff)
parentddf6d0a00cbb4ad6d4fb4200cc911bb9389174c1 (diff)
downloadlinux-d73dee6ee4b554074f88e4ebd956ea4db8552d52.tar.gz
linux-d73dee6ee4b554074f88e4ebd956ea4db8552d52.tar.bz2
linux-d73dee6ee4b554074f88e4ebd956ea4db8552d52.zip
Pull for-each-cpu into release branch
Diffstat (limited to 'arch/ia64/mm')
-rw-r--r--arch/ia64/mm/tlb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/ia64/mm/tlb.c b/arch/ia64/mm/tlb.c
index 464557e4ed82..987fb754d6ad 100644
--- a/arch/ia64/mm/tlb.c
+++ b/arch/ia64/mm/tlb.c
@@ -77,9 +77,10 @@ wrap_mmu_context (struct mm_struct *mm)
/* can't call flush_tlb_all() here because of race condition with O(1) scheduler [EF] */
{
int cpu = get_cpu(); /* prevent preemption/migration */
- for (i = 0; i < NR_CPUS; ++i)
- if (cpu_online(i) && (i != cpu))
+ for_each_online_cpu(i) {
+ if (i != cpu)
per_cpu(ia64_need_tlb_flush, i) = 1;
+ }
put_cpu();
}
local_flush_tlb_all();