Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/char/ipmi/ipmi_si_intf.c
··· 2187 2187 * handlers might have been running before we freed the 2188 2188 * interrupt. 2189 2189 */ 2190 - synchronize_sched(); 2190 + synchronize_rcu(); 2191 2191 2192 2192 /* 2193 2193 * Timeouts are stopped, now make sure the interrupts are off