]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: smt: Use normal int for refcount
authorChuhong Yuan <hslester96@gmail.com>
Tue, 6 Aug 2019 02:58:54 +0000 (10:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 01:12:17 +0000 (18:12 -0700)
commitf35f82962ecb8a344067735387301163ec90ff91
tree8300287b526ed9f49c70bb2d5fb98173559a62b0
parent662f8bd3fdc7646c1e1bf3065ee1c3ca0bf073a9
cxgb4: smt: Use normal int for refcount

All refcount operations are protected by spinlocks now.
Then the atomic counter can be replaced by a normal int.

This patch depends on PATCH 1/2.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/smt.c
drivers/net/ethernet/chelsio/cxgb4/smt.h