]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sfc: replace spinlocks with bit ops for busy poll locking
authorBert Kenward <bkenward@solarflare.com>
Mon, 26 Oct 2015 14:23:42 +0000 (14:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2015 02:40:33 +0000 (19:40 -0700)
commitc0f9c7e45d374ce6dc369443fa586c2fe228c345
treec085878e09c59da0678d3efde12f01597bc8eca8
parent080a270f5adec1ada1357eb66321e7222cc34301
sfc: replace spinlocks with bit ops for busy poll locking

This patch reduces the overhead of locking for busy poll.
Previously the state was protected by a lock, whereas now
it's manipulated solely with atomic operations.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/net_driver.h