mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
msm: ipa : Fix update of buffer recycle stats
The stats for tmp allocs should be updated only if additional buffers are available. Change-Id: Ic064f87a54e37ef046d6761c79664e1ea830d04c Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com> Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
This commit is contained in:
parent
ec0f991d2f
commit
791e8ab19a
1 changed files with 1 additions and 1 deletions
|
|
@ -1975,9 +1975,9 @@ static void ipa3_replenish_rx_page_recycle(struct ipa3_sys_context *sys)
|
|||
* Could not find idle page at curr index.
|
||||
* Allocate a new one.
|
||||
*/
|
||||
ipa3_ctx->stats.page_recycle_stats[stats_i].tmp_alloc++;
|
||||
if (curr_wq == atomic_read(&sys->repl->tail_idx))
|
||||
break;
|
||||
ipa3_ctx->stats.page_recycle_stats[stats_i].tmp_alloc++;
|
||||
rx_pkt = sys->repl->cache[curr_wq];
|
||||
curr_wq = (++curr_wq == sys->repl->capacity) ?
|
||||
0 : curr_wq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue