]> git.hungrycats.org Git - linux/commitdiff
[PATCH] remove (start|end)_lazy_tlb()
authorAndrew Morton <akpm@digeo.com>
Tue, 18 Feb 2003 13:29:19 +0000 (05:29 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 18 Feb 2003 13:29:19 +0000 (05:29 -0800)
Patch from William Lee Irwin III <wli@holomorphy.com>

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

include/linux/sched.h
kernel/exit.c

index ff0fcd301ba1829b7991adb212482f038da59059..c3fc6fc5ed9abd5666952d9af2e3118a474cf09e 100644 (file)
@@ -591,9 +591,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)
index 6b2f1113b926c73176d3b262663c0d79d44dced6..c45159219e836f34fe28182f70d0a87bb6eef360 100644 (file)
@@ -434,33 +434,6 @@ void exit_fs(struct task_struct *tsk)
        __exit_fs(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..