aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.ibm.com>2018-10-30 15:45:04 -0700
committerPaul E. McKenney <paulmck@linux.ibm.com>2018-11-08 21:43:20 -0800
commit8fa9eb388eb00f7a63caf0fd370f8c134015fc1f (patch)
tree8397c71d761dd58af58467c0c0cfd6b003f50789 /arch
parentsched/membarrier: Replace synchronize_sched() with synchronize_rcu() (diff)
downloadlinux-dev-8fa9eb388eb00f7a63caf0fd370f8c134015fc1f.tar.xz
linux-dev-8fa9eb388eb00f7a63caf0fd370f8c134015fc1f.zip
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: Paul 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/oprofile/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/oprofile/init.c b/arch/sparc/oprofile/init.c
index f9024bccff16..43730c9b1c86 100644
--- a/arch/sparc/oprofile/init.c
+++ b/arch/sparc/oprofile/init.c
@@ -53,7 +53,7 @@ static void timer_stop(void)
{
nmi_adjust_hz(1);
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)