OSDN Git Service

perf/x86: Add compiler barrier after updating BTS
authorLeo Yan <leo.yan@linaro.org>
Mon, 9 Aug 2021 11:14:02 +0000 (19:14 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 17 Sep 2021 13:08:38 +0000 (15:08 +0200)
commit41100833cdd8b1bef363b81a6482d74711c116ad
tree9893aeb221c1e071aa92f9ca582b468f69068e98
parent4034fb207e302cc0b1f304084d379640c1fb1436
perf/x86: Add compiler barrier after updating BTS

Since BTS is coherent, simply add a compiler barrier to separate the BTS
update and aux_head store.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210809111407.596077-5-leo.yan@linaro.org
arch/x86/events/intel/bts.c