/* This isn't an LRU system, it just frees up each context in turn (sort-of pseudo-random replacement :). This would be the place to implement an LRU scheme if anyone were motivated to do it.  */
void steal_context(void)
/* This isn't an LRU system, it just frees up each context in turn (sort-of pseudo-random replacement :). This would be the place to implement an LRU scheme if anyone were motivated to do it.  */
void steal_context(void)
{
	struct mm_struct *mm;
	if (next_mmu_context < FIRST_CONTEXT)
		next_mmu_context = FIRST_CONTEXT;
	mm = context_mm[next_mmu_context];
	flush_tlb_mm(mm);
	destroy_context(mm);
}