]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-alpha/mmu_context.h
drivers/net/tokenring/3c359.c: squish a warning
[linux-2.6-omap-h63xx.git] / include / asm-alpha / mmu_context.h
index 6f92482cc96c6ebbd360c98899b4f4fc465828aa..6a5be1f7debf3a941c3c4db049459cacd019253f 100644 (file)
@@ -7,10 +7,10 @@
  * Copyright (C) 1996, Linus Torvalds
  */
 
-#include <linux/config.h>
 #include <asm/system.h>
 #include <asm/machvec.h>
 #include <asm/compiler.h>
+#include <asm-generic/mm_hooks.h>
 
 /*
  * Force a context reload. This is needed when we change the page
@@ -85,8 +85,8 @@ __reload_thread(struct pcb_struct *pcb)
  * +-------------+----------------+--------------+
  */
 
-#ifdef CONFIG_SMP
 #include <asm/smp.h>
+#ifdef CONFIG_SMP
 #define cpu_last_asn(cpuid)    (cpu_data[cpuid].last_asn)
 #else
 extern unsigned long last_asn;
@@ -231,9 +231,8 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm)
 {
        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;