diff options
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r-- | 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 b630d52bdfb1..16e4be4de0c5 100644 --- a/include/asm-x86_64/mmu_context.h +++ b/include/asm-x86_64/mmu_context.h | |||
@@ -15,18 +15,13 @@ | |||
15 | int init_new_context(struct task_struct *tsk, struct mm_struct *mm); | 15 | int init_new_context(struct task_struct *tsk, struct mm_struct *mm); |
16 | void destroy_context(struct mm_struct *mm); | 16 | void destroy_context(struct mm_struct *mm); |
17 | 17 | ||
18 | #ifdef CONFIG_SMP | ||
19 | |||
20 | static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) | 18 | static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) |
21 | { | 19 | { |
20 | #ifdef CONFIG_SMP | ||
22 | if (read_pda(mmu_state) == TLBSTATE_OK) | 21 | if (read_pda(mmu_state) == TLBSTATE_OK) |
23 | write_pda(mmu_state, TLBSTATE_LAZY); | 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 | #endif | 23 | #endif |
24 | } | ||
30 | 25 | ||
31 | static inline void load_cr3(pgd_t *pgd) | 26 | static inline void load_cr3(pgd_t *pgd) |
32 | { | 27 | { |