All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Trivial cleanup to x86_64 enter_lazy_tlb()
@ 2005-09-25  0:07 Brian Gerst
  0 siblings, 0 replies; only message in thread
From: Brian Gerst @ 2005-09-25  0:07 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Andi Kleen, lkml

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Move the #ifdef into the function body.

Signed-off-by: Brian Gerst <bgerst@didntduck.org>

[-- Attachment #2: 0002-Trivial-cleanup-to-x86_64-enter_lazy_tlb.txt --]
[-- Type: text/plain, Size: 960 bytes --]

Subject: [PATCH] Trivial cleanup to x86_64 enter_lazy_tlb()

Move the #ifdef into the function body.

Signed-off-by: Brian Gerst <bgerst@didntduck.org>

---

 include/asm-x86_64/mmu_context.h |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

f01fd56b69e46c6cb3af9eaebe7b3a4ad3b0757a
diff --git a/include/asm-x86_64/mmu_context.h b/include/asm-x86_64/mmu_context.h
--- a/include/asm-x86_64/mmu_context.h
+++ b/include/asm-x86_64/mmu_context.h
@@ -15,18 +15,13 @@
 int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
 void destroy_context(struct mm_struct *mm);
 
-#ifdef CONFIG_SMP
-
 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
 {
+#ifdef CONFIG_SMP
 	if (read_pda(mmu_state) == TLBSTATE_OK) 
 		write_pda(mmu_state, TLBSTATE_LAZY);
-}
-#else
-static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
-{
-}
 #endif
+}
 
 static inline void load_cr3(pgd_t *pgd)
 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-25  0:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-25  0:07 [PATCH] Trivial cleanup to x86_64 enter_lazy_tlb() Brian Gerst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.