patch-2.4.0-test6 linux/include/asm-mips64/mmu_context.h
Next file: linux/include/asm-mips64/mmzone.h
Previous file: linux/include/asm-mips64/mc146818rtc.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Tue Aug 8 09:48:25 2000
- Orig file:
v2.4.0-test5/linux/include/asm-mips64/mmu_context.h
- Orig date:
Mon Jul 10 16:47:26 2000
diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-mips64/mmu_context.h linux/include/asm-mips64/mmu_context.h
@@ -76,20 +76,17 @@
#ifndef CONFIG_SMP
mm->context = 0;
#else
- /* Make sure not to do anything during a clone-vm operation */
- if ((current == tsk) || (current->mm != mm)) {
- mm->context = (unsigned long)kmalloc(smp_num_cpus *
- sizeof(unsigned long), GFP_KERNEL);
- /*
- * Init the "context" values so that a tlbpid allocation
- * happens on the first switch.
- */
- if (mm->context)
- memset((void *)mm->context, 0, smp_num_cpus *
- sizeof(unsigned long));
- else
- printk("Warning: init_new_context failed\n");
- }
+ mm->context = (unsigned long)kmalloc(smp_num_cpus *
+ sizeof(unsigned long), GFP_KERNEL);
+ /*
+ * Init the "context" values so that a tlbpid allocation
+ * happens on the first switch.
+ */
+ if (mm->context)
+ memset((void *)mm->context, 0, smp_num_cpus *
+ sizeof(unsigned long));
+ else
+ printk("Warning: init_new_context failed\n");
#endif
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)