patch-2.4.8 linux/arch/sparc64/mm/init.c
Next file: linux/drivers/block/DAC960.c
Previous file: linux/arch/sparc64/mm/extable.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Tue Aug 7 08:30:50 2001
- Orig file:
v2.4.7/linux/arch/sparc64/mm/init.c
- Orig date:
Wed May 16 10:20:11 2001
diff -u --recursive --new-file v2.4.7/linux/arch/sparc64/mm/init.c linux/arch/sparc64/mm/init.c
@@ -1,4 +1,4 @@
-/* $Id: init.c,v 1.176 2001/05/16 15:07:11 davem Exp $
+/* $Id: init.c,v 1.178 2001/08/06 13:09:00 davem Exp $
* arch/sparc64/mm/init.c
*
* Copyright (C) 1996-1999 David S. Miller (davem@caip.rutgers.edu)
@@ -833,6 +833,7 @@
}
/* Caller does TLB context flushing on local CPU if necessary.
+ * The caller also ensures that CTX_VALID(mm->context) is false.
*
* We must be careful about boundary cases so that we never
* let the user have CTX 0 (nucleus) or we ever use a CTX
@@ -845,12 +846,6 @@
spin_lock(&ctx_alloc_lock);
ctx = CTX_HWBITS(tlb_context_cache + 1);
- if (ctx == 0)
- ctx = 1;
- if (CTX_VALID(mm->context)) {
- unsigned long nr = CTX_HWBITS(mm->context);
- mmu_context_bmap[nr>>6] &= ~(1UL << (nr & 63));
- }
new_ctx = find_next_zero_bit(mmu_context_bmap, 1UL << CTX_VERSION_SHIFT, ctx);
if (new_ctx >= (1UL << CTX_VERSION_SHIFT)) {
new_ctx = find_next_zero_bit(mmu_context_bmap, ctx, 1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)