Commit 8fa9eb38 authored by Paul E. McKenney's avatar Paul E. McKenney

sparc/oprofile: Convert timer_stop() to use synchronize_rcu()

Now that synchronize_rcu() waits for preempt-disable regions of code
in addition to explicitly marked RCU read-side critical sections,
synchronize_rcu() can be used in place of synchronize_sched().  This
commit therefore makes that change.
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
Cc: Robert Richter <rric@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: <oprofile-list@lists.sf.net>
Cc: <sparclinux@vger.kernel.org>
parent 78d125d3
...@@ -53,7 +53,7 @@ static void timer_stop(void) ...@@ -53,7 +53,7 @@ static void timer_stop(void)
{ {
nmi_adjust_hz(1); nmi_adjust_hz(1);
unregister_die_notifier(&profile_timer_exceptions_nb); unregister_die_notifier(&profile_timer_exceptions_nb);
synchronize_sched(); /* Allow already-started NMIs to complete. */ synchronize_rcu(); /* Allow already-started NMIs to complete. */
} }
static int op_nmi_timer_init(struct oprofile_operations *ops) static int op_nmi_timer_init(struct oprofile_operations *ops)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment