Skip to content

Commit

Permalink
[PATCH] x86_64: cleanup enter_lazy_tlb()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Gerst authored and Linus Torvalds committed Jan 12, 2006
1 parent 1008fdd commit e4b5939
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions include/asm-x86_64/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e4b5939

Please sign in to comment.