patch-2.2.19 linux/include/asm-alpha/pgtable.h
Next file: linux/include/asm-alpha/ptrace.h
Previous file: linux/include/asm-alpha/page.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sun Mar 25 11:37:39 2001
- Orig file:
v2.2.18/include/asm-alpha/pgtable.h
- Orig date:
Sun Mar 25 11:12:39 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/include/asm-alpha/pgtable.h linux/include/asm-alpha/pgtable.h
@@ -73,7 +73,13 @@
__EXTERN_INLINE void
ev5_flush_tlb_other(struct mm_struct *mm)
{
- mm->context = 0;
+ long * mmc = &mm->context[smp_processor_id()];
+ /*
+ * Check it's not zero first to avoid cacheline ping pong when
+ * possible.
+ */
+ if (*mmc)
+ *mmc = 0;
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)