[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>

authored by Brian Gerst and committed by Linus Torvalds e4b5939a 1008fddc

+2 -7
+2 -7
include/asm-x86_64/mmu_context.h
··· 15 15 int init_new_context(struct task_struct *tsk, struct mm_struct *mm); 16 16 void destroy_context(struct mm_struct *mm); 17 17 18 - #ifdef CONFIG_SMP 19 - 20 18 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 21 19 { 20 + #ifdef CONFIG_SMP 22 21 if (read_pda(mmu_state) == TLBSTATE_OK) 23 22 write_pda(mmu_state, TLBSTATE_LAZY); 24 - } 25 - #else 26 - static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 27 - { 28 - } 29 23 #endif 24 + } 30 25 31 26 static inline void load_cr3(pgd_t *pgd) 32 27 {