Skip to contentSkip to conversation

ethernet/sis: Replace synchronize_sched() with synchronize_rcu()

tip:core/rcu tip-bot for Paul E. McKenney 1 participant 1 message Dec 4, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw
Commit-ID:  fd8e688b0e8cc0c0a8ca18acb69cb8397ed62eec
Gitweb:     https://git.kernel.org/tip/fd8e688b0e8cc0c0a8ca18acb69cb8397ed62eec
Author:     Paul E. McKenney <[email protected]>
AuthorDate: Mon, 5 Nov 2018 17:05:08 -0800
Committer:  Paul E. McKenney <[email protected]>
CommitDate: Tue, 27 Nov 2018 09:21:36 -0800

ethernet/sis: 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.

Cc Francois Romieu <[email protected]>
Cc "David S. Miller" <[email protected]>
---
 drivers/net/ethernet/sis/sis190.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sis/sis190.c +1 -1
index c2c50522b96d..808cf9816673 100644
@@ -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));