Commit 17c0eb74 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

drivers/ipmi: 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: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <openipmi-developer@lists.sourceforge.net>
Acked-by: default avatarCorey Minyard <cminyard@mvista.com>
parent a0076e17
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2187,7 +2187,7 @@ static void shutdown_smi(void *send_info)
	 * handlers might have been running before we freed the
	 * handlers might have been running before we freed the
	 * interrupt.
	 * interrupt.
	 */
	 */
	synchronize_sched();
	synchronize_rcu();


	/*
	/*
	 * Timeouts are stopped, now make sure the interrupts are off
	 * Timeouts are stopped, now make sure the interrupts are off