diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-03 14:16:57 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:18 -0400 |
commit | b5eb551145395382ddf302548991a5fbaabc5341 (patch) | |
tree | 89d8819130337b3836723527825adaf93df5d74f /include/asm-mips/mmu_context.h | |
parent | bd6aeeffcc0be716e4d2d1f27fb132741e345cc0 (diff) |
[MIPS] Kill num_online_cpus() loops.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/mmu_context.h')
-rw-r--r-- | include/asm-mips/mmu_context.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/mmu_context.h b/include/asm-mips/mmu_context.h index b3b7a689e7d3..0c4f245eaeb2 100644 --- a/include/asm-mips/mmu_context.h +++ b/include/asm-mips/mmu_context.h | |||
@@ -120,7 +120,7 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm) | |||
120 | { | 120 | { |
121 | int i; | 121 | int i; |
122 | 122 | ||
123 | for (i = 0; i < num_online_cpus(); i++) | 123 | for_each_online_cpu(i) |
124 | cpu_context(i, mm) = 0; | 124 | cpu_context(i, mm) = 0; |
125 | 125 | ||
126 | return 0; | 126 | return 0; |
@@ -284,7 +284,7 @@ drop_mmu_context(struct mm_struct *mm, unsigned cpu) | |||
284 | int i; | 284 | int i; |
285 | 285 | ||
286 | /* SMTC shares the TLB (and ASIDs) across VPEs */ | 286 | /* SMTC shares the TLB (and ASIDs) across VPEs */ |
287 | for (i = 0; i < num_online_cpus(); i++) { | 287 | for_each_online_cpu(i) { |
288 | if((smtc_status & SMTC_TLB_SHARED) | 288 | if((smtc_status & SMTC_TLB_SHARED) |
289 | || (cpu_data[i].vpe_id == cpu_data[cpu].vpe_id)) | 289 | || (cpu_data[i].vpe_id == cpu_data[cpu].vpe_id)) |
290 | cpu_context(i, mm) = 0; | 290 | cpu_context(i, mm) = 0; |