Skip to contentSkip to conversation

Trivial cleanup to x86_64 enter_lazy_tlb()

PATCH New Brian Gerst 1 participant 1 message Sep 25, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Trivial cleanup to x86_64 enter_lazy_tlb()

Move the #ifdef into the function body.

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

Move the #ifdef into the function body.

---

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

f01fd56b69e46c6cb3af9eaebe7b3a4ad3b0757a

include/asm-x86_64/mmu_context.h +2 -7
@@ -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)
 {