Skip to contentSkip to conversation

remove (start|end)_lazy_tlb()

PATCH William Lee Irwin III 1 participant 1 message Feb 19, 2003 Scheduler

lore
Share & tools
lore
#0 lore raw

Remove start_lazy_tlb() and end_lazy_tlb(), as they are unused.

 include/linux/sched.h |    3 ---
 kernel/exit.c         |   26 --------------------------
 2 files changed, 29 deletions(-)
include/linux/sched.h +0 -3
diff -urpN linux-2.5.62/include/linux/sched.h cleanup-2.5.62-1/include/linux/sched.h
@@ -571,9 +571,6 @@ static inline int capable(int cap)
  */
 extern struct mm_struct * mm_alloc(void);
 
-extern struct mm_struct * start_lazy_tlb(void);
-extern void end_lazy_tlb(struct mm_struct *mm);
-
 /* mmdrop drops the mm and the page tables */
 extern inline void FASTCALL(__mmdrop(struct mm_struct *));
 static inline void mmdrop(struct mm_struct * mm)
kernel/exit.c +0 -26
diff -urpN linux-2.5.62/kernel/exit.c cleanup-2.5.62-1/kernel/exit.c
@@ -435,32 +435,6 @@ void exit_fs(struct task_struct *tsk)
 }
 
 /*
- * We can use these to temporarily drop into
- * "lazy TLB" mode and back.
- */
-struct mm_struct * start_lazy_tlb(void)
-{
-	struct mm_struct *mm = current->mm;
-	current->mm = NULL;
-	/* active_mm is still 'mm' */
-	atomic_inc(&mm->mm_count);
-	enter_lazy_tlb(mm, current, smp_processor_id());
-	return mm;
-}
-
-void end_lazy_tlb(struct mm_struct *mm)
-{
-	struct mm_struct *active_mm = current->active_mm;
-
-	current->mm = mm;
-	if (mm != active_mm) {
-		current->active_mm = mm;
-		activate_mm(active_mm, mm);
-	}
-	mmdrop(active_mm);
-}
-
-/*
  * Turn us into a lazy TLB process if we
  * aren't already..
  */