public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64: cleanup enter_lazy_tlb()
@ 2006-01-06 23:34 Brian Gerst
  0 siblings, 0 replies; only message in thread
From: Brian Gerst @ 2006-01-06 23:34 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Andi Kleen, lkml

Move the #ifdef into the function body.

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

---
commit bcefe96417edca37a3834ba081bc8928cf411183
tree bb6b021c691fa2cbcc85fe6c880a3a548d65bb85
parent 35b05d09cd8b10bebe341d8f315d11497b88f012
author Brian Gerst <bgerst@didntduck.org> Fri, 06 Jan 2006 17:20:20 -0500
committer Brian Gerst <bgerst@didntduck.org> Fri, 06 Jan 2006 17:20:20 -0500

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

diff --git a/include/asm-x86_64/mmu_context.h b/include/asm-x86_64/mmu_context.h
index b630d52..16e4be4 100644
--- 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 related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-06 23:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-06 23:34 [PATCH] x86_64: cleanup enter_lazy_tlb() Brian Gerst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox