From: Andrew Cooper Date: Mon, 8 May 2017 16:02:09 +0000 (+0000) Subject: x86/tlb: Don't use locked operations in tlbflush_filter() X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2121 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ad0341c712fe5827a64bdfd191e018be345b126f;p=xen.git x86/tlb: Don't use locked operations in tlbflush_filter() All passed cpumask_t's are context-local and not at risk of concurrent updates. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- diff --git a/xen/include/asm-x86/flushtlb.h b/xen/include/asm-x86/flushtlb.h index 8b7adef7c5..aa86ea2f3e 100644 --- a/xen/include/asm-x86/flushtlb.h +++ b/xen/include/asm-x86/flushtlb.h @@ -55,7 +55,7 @@ static inline void tlbflush_filter(cpumask_t *mask, uint32_t page_timestamp) for_each_cpu ( cpu, mask ) if ( !NEED_FLUSH(per_cpu(tlbflush_time, cpu), page_timestamp) ) - cpumask_clear_cpu(cpu, mask); + __cpumask_clear_cpu(cpu, mask); } void new_tlbflush_clock_period(void);