ethernet/sis: Replace synchronize_sched() with synchronize_rcu()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 6 Nov 2018 01:05:08 +0000 (17:05 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 27 Nov 2018 17:21:36 +0000 (09:21 -0800)
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: Francois Romieu <romieu@fr.zoreil.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>
drivers/net/ethernet/sis/sis190.c

index c2c50522b96d6399bd9b48ddaa4d9b8e48281009..808cf98166737fdf2e8db974263f12cd9394afe3 100644 (file)
@@ -1142,7 +1142,7 @@ static void sis190_down(struct net_device *dev)
                if (!poll_locked)
                        poll_locked++;
 
-               synchronize_sched();
+               synchronize_rcu();
 
        } while (SIS_R32(IntrMask));