]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commite3e9652a43207561eaec6085a8272fe11b283286
tree2efe8023a1d48b4791f97195d36a08e8534094e9
parent1738cd3ed342294360d6a74d4e58800004bff854
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