diff options
| author | Houston Hoffman <hhoffman@codeaurora.org> | 2016-10-13 18:54:52 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-23 14:22:41 -0800 |
| commit | ed36ca9fa2b865a3689bfae743a46242190b92a0 (patch) | |
| tree | aabfdf6cde4108550f1b581c2be81d3dd7d35b98 | |
| parent | b0b785fce1321eefd1509809a4d639c5d61bfafd (diff) | |
qcacld-3.0: update dump_tx_desc
The dump_tx_desc function is called to report the number of freed and used
tx descriptors when a suspend is rejected by data path. The debug code
was directly referencing a data field whereas the code to check the freed
and used descriptors used a function that reports a different number under
certain compilation flags. Use the function in the debug statement such that
the value checked is the value printed.
Change-Id: Iad3f519dc88319c7a421f77376dd43e15e6eaf09
CRs-Fixed: 1113880
| -rw-r--r-- | core/dp/txrx/ol_txrx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index 521f79ae11e1..ebcc07cb3390 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/core/dp/txrx/ol_txrx.c @@ -3172,16 +3172,18 @@ ol_txrx_peer_find_by_addr(struct ol_txrx_pdev_t *pdev, uint8_t *peer_mac_addr) static void ol_txrx_dump_tx_desc(ol_txrx_pdev_handle pdev_handle) { struct ol_txrx_pdev_t *pdev = (ol_txrx_pdev_handle) pdev_handle; - uint32_t total; + uint32_t total, num_free; if (ol_cfg_is_high_latency(pdev->ctrl_pdev)) total = qdf_atomic_read(&pdev->orig_target_tx_credit); else total = ol_tx_get_desc_global_pool_size(pdev); + num_free = ol_tx_get_total_free_desc(pdev); + TXRX_PRINT(TXRX_PRINT_LEVEL_ERR, "total tx credit %d num_free %d", - total, pdev->tx_desc.num_free); + total, num_free); return; } |
