提交 7f0ec325 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

perf/core: Remove wrong barrier

The barrier and comment make no sense:

 - if what the barrier says is true, it should be wmb() but that
   should then be part of the arch driver, not the generic code.

 - if it is an SMP barrier, there must be a matching barrier, and
   there isn't one.

So kill it.
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: NIngo Molnar <mingo@kernel.org>
上级 8ca2bd41
...@@ -2097,11 +2097,6 @@ event_sched_in(struct perf_event *event, ...@@ -2097,11 +2097,6 @@ event_sched_in(struct perf_event *event,
event->hw.interrupts = 0; event->hw.interrupts = 0;
} }
/*
* The new state must be visible before we turn it on in the hardware:
*/
smp_wmb();
perf_pmu_disable(event->pmu); perf_pmu_disable(event->pmu);
perf_set_shadow_time(event, ctx, tstamp); perf_set_shadow_time(event, ctx, tstamp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册