From 22d22de644b19e3af410f9e6abe412c1c2fab75c Mon Sep 17 00:00:00 2001 From: Brian Gerst Date: Fri, 21 Feb 2003 01:48:27 -0800 Subject: [PATCH] [PATCH] Trival patch to i386 enter_lazy_tlb() Moves the #ifdef into the function to improve readability. --- include/asm-i386/mmu_context.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/asm-i386/mmu_context.h b/include/asm-i386/mmu_context.h index 2c561831e7c5c..ff9a645cd7985 100644 --- a/include/asm-i386/mmu_context.h +++ b/include/asm-i386/mmu_context.h @@ -13,18 +13,14 @@ 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, unsigned cpu) { +#ifdef CONFIG_SMP if (cpu_tlbstate[cpu].state == TLBSTATE_OK) cpu_tlbstate[cpu].state = TLBSTATE_LAZY; -} -#else -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu) -{ -} #endif +} static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk, unsigned cpu) { -- 2.53.0