diff options
Diffstat (limited to 'arch/x86/include/asm/mmu_context.h')
| -rw-r--r-- | arch/x86/include/asm/mmu_context.h | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/include/asm/mmu_context.h b/arch/x86/include/asm/mmu_context.h index 69021528b43..cdbf3677610 100644 --- a/arch/x86/include/asm/mmu_context.h +++ b/arch/x86/include/asm/mmu_context.h @@ -25,8 +25,8 @@ void destroy_context(struct mm_struct *mm);  static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)  {  #ifdef CONFIG_SMP -	if (percpu_read(cpu_tlbstate.state) == TLBSTATE_OK) -		percpu_write(cpu_tlbstate.state, TLBSTATE_LAZY); +	if (this_cpu_read(cpu_tlbstate.state) == TLBSTATE_OK) +		this_cpu_write(cpu_tlbstate.state, TLBSTATE_LAZY);  #endif  } @@ -37,8 +37,8 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,  	if (likely(prev != next)) {  #ifdef CONFIG_SMP -		percpu_write(cpu_tlbstate.state, TLBSTATE_OK); -		percpu_write(cpu_tlbstate.active_mm, next); +		this_cpu_write(cpu_tlbstate.state, TLBSTATE_OK); +		this_cpu_write(cpu_tlbstate.active_mm, next);  #endif  		cpumask_set_cpu(cpu, mm_cpumask(next)); @@ -56,8 +56,8 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,  	}  #ifdef CONFIG_SMP  	else { -		percpu_write(cpu_tlbstate.state, TLBSTATE_OK); -		BUG_ON(percpu_read(cpu_tlbstate.active_mm) != next); +		this_cpu_write(cpu_tlbstate.state, TLBSTATE_OK); +		BUG_ON(this_cpu_read(cpu_tlbstate.active_mm) != next);  		if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next))) {  			/* We were in lazy tlb mode and leave_mm disabled  |