git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-alpha
/
mmu_context.h
diff --git
a/include/asm-alpha/mmu_context.h
b/include/asm-alpha/mmu_context.h
index
0c017fc
..
6f92482
100644
(file)
--- a/
include/asm-alpha/mmu_context.h
+++ b/
include/asm-alpha/mmu_context.h
@@
-231,8
+231,9
@@
init_new_context(struct task_struct *tsk, struct mm_struct *mm)
{
int i;
- for_each_online_cpu(i)
- mm->context[i] = 0;
+ for (i = 0; i < NR_CPUS; i++)
+ if (cpu_online(i))
+ mm->context[i] = 0;
if (tsk != current)
task_thread_info(tsk)->pcb.ptbr
= ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT;