提交 0809d954 编写于 作者: P Paul E. McKenney

events: Replace synchronize_sched() with synchronize_rcu()

Now that synchronize_rcu() waits for preempt-disable regions of code
as well as RCU read-side critical sections, synchronize_sched() can be
replaced by synchronize_rcu().  This commit therefore makes this change.
Signed-off-by: NPaul E. McKenney <paulmck@linux.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
上级 25b00775
...@@ -9918,7 +9918,7 @@ static void account_event(struct perf_event *event) ...@@ -9918,7 +9918,7 @@ static void account_event(struct perf_event *event)
* call the perf scheduling hooks before proceeding to * call the perf scheduling hooks before proceeding to
* install events that need them. * install events that need them.
*/ */
synchronize_sched(); synchronize_rcu();
} }
/* /*
* Now that we have waited for the sync_sched(), allow further * Now that we have waited for the sync_sched(), allow further
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册