]> git.baikalelectronics.ru Git - 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)
commit4401306631bd8940151e5ca07fa5092918c987cb
treec085878e09c59da0678d3efde12f01597bc8eca8
parentf9c3cd50d1cfc065e1c137bda43dbb78e6698450
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