public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@zip.com.au
Subject: remove (start|end)_lazy_tlb()
Date: Tue, 18 Feb 2003 17:16:48 -0800	[thread overview]
Message-ID: <20030219011648.GA17318@holomorphy.com> (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(-)


diff -urpN linux-2.5.62/include/linux/sched.h cleanup-2.5.62-1/include/linux/sched.h
--- linux-2.5.62/include/linux/sched.h	2003-02-17 14:55:53.000000000 -0800
+++ cleanup-2.5.62-1/include/linux/sched.h	2003-02-18 17:13:37.000000000 -0800
@@ -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)
diff -urpN linux-2.5.62/kernel/exit.c cleanup-2.5.62-1/kernel/exit.c
--- linux-2.5.62/kernel/exit.c	2003-02-17 14:56:54.000000000 -0800
+++ cleanup-2.5.62-1/kernel/exit.c	2003-02-18 17:13:05.000000000 -0800
@@ -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..
  */

                 reply	other threads:[~2003-02-19  1:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030219011648.GA17318@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox