summaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/mmu_context.h
diff options
context:
space:
mode:
authorBrian Gerst <bgerst@didntduck.org>2006-01-11 22:46:09 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-11 19:05:00 -0800
commite4b5939a7eec7726d410517e433040db4ede5102 (patch)
tree256bc1f4ccb7e42d6bd50bc482fe0499337f6eb3 /include/asm-x86_64/mmu_context.h
parent1008fddcaed7ad3e69f72939c87b24d0d3387ca2 (diff)
downloadop-kernel-dev-e4b5939a7eec7726d410517e433040db4ede5102.zip
op-kernel-dev-e4b5939a7eec7726d410517e433040db4ede5102.tar.gz
[PATCH] x86_64: cleanup enter_lazy_tlb()
Move the #ifdef into the function body. Signed-off-by: Brian Gerst <bgerst@didntduck.org> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64/mmu_context.h')
-rw-r--r--include/asm-x86_64/mmu_context.h9
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)
{
OpenPOWER on IntegriCloud