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: Paul 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: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
a0076e1778
commit
17c0eb7415
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue