projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux...
[powerpc.git]
/
include
/
asm-alpha
/
mmu_context.h
diff --git
a/include/asm-alpha/mmu_context.h
b/include/asm-alpha/mmu_context.h
index
6f92482
..
fe249e9
100644
(file)
--- a/
include/asm-alpha/mmu_context.h
+++ b/
include/asm-alpha/mmu_context.h
@@
-7,7
+7,6
@@
* Copyright (C) 1996, Linus Torvalds
*/
* Copyright (C) 1996, Linus Torvalds
*/
-#include <linux/config.h>
#include <asm/system.h>
#include <asm/machvec.h>
#include <asm/compiler.h>
#include <asm/system.h>
#include <asm/machvec.h>
#include <asm/compiler.h>
@@
-231,9
+230,8
@@
init_new_context(struct task_struct *tsk, struct mm_struct *mm)
{
int i;
{
int i;
- for (i = 0; i < NR_CPUS; i++)
- if (cpu_online(i))
- mm->context[i] = 0;
+ for_each_online_cpu(i)
+ mm->context[i] = 0;
if (tsk != current)
task_thread_info(tsk)->pcb.ptbr
= ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT;
if (tsk != current)
task_thread_info(tsk)->pcb.ptbr
= ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT;