mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacmn: Increment/Decrement num_tx_outstanding
Increment pdev->num_tx_outstanding when tx_desc is allocated and decrement tx_desc when tx_desc is released. During runtime pm suspend, WOW PAUSE is sent to firmware only if there are no pending num_tx_outstanding descriptors. Change-Id: I54aaa4d8a37b8cd47de1701a315bb0735c9739d2 CRs-Fixed: 2567689
This commit is contained in:
parent
0a26d8d2c1
commit
d62af87cc1
1 changed files with 2 additions and 0 deletions
|
|
@ -141,11 +141,13 @@ dp_tx_limit_check(struct dp_vdev *vdev)
|
|||
static inline void
|
||||
dp_tx_outstanding_inc(struct dp_pdev *pdev)
|
||||
{
|
||||
qdf_atomic_inc(&pdev->num_tx_outstanding);
|
||||
}
|
||||
|
||||
static inline void
|
||||
dp_tx_outstanding_dec(struct dp_pdev *pdev)
|
||||
{
|
||||
qdf_atomic_dec(&pdev->num_tx_outstanding);
|
||||
}
|
||||
#endif //QCA_TX_LIMIT_CHECK
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue