]> 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)
commit6237a516ce537696a3fca2076be293d4879f2a81
treec085878e09c59da0678d3efde12f01597bc8eca8
parentaf302f50eccb7aa81a8ffea350eef2282ed3dd1c
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