]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: enhance the locking using the lightweight ones
authorSean Wang <sean.wang@mediatek.com>
Thu, 11 Aug 2016 09:51:00 +0000 (17:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 03:22:56 +0000 (20:22 -0700)
commit980ae31efafb5d7ca59f0af8733e9b4e6d96c98f
tree2efe8023a1d48b4791f97195d36a08e8534094e9
parent42904aea461f051bb91309250fb18efed1964893
net: ethernet: mediatek: enhance the locking using the lightweight ones

Since these critical sections protected by page_lock are all entered
from the user context or bottom half context, they can be replaced
with the spin_lock() or spin_lock_bh instead of spin_lock_irqsave().

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c