Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82eaebd5 authored by Bojun Pan's avatar Bojun Pan Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarPriyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent 0af2ccf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1979,9 +1979,9 @@ static void ipa3_replenish_rx_page_recycle(struct ipa3_sys_context *sys)
			 * Could not find idle page at curr index.
			 * Could not find idle page at curr index.
			 * Allocate a new one.
			 * Allocate a new one.
			 */
			 */
			ipa3_ctx->stats.page_recycle_stats[stats_i].tmp_alloc++;
			if (curr_wq == atomic_read(&sys->repl->tail_idx))
			if (curr_wq == atomic_read(&sys->repl->tail_idx))
				break;
				break;
			ipa3_ctx->stats.page_recycle_stats[stats_i].tmp_alloc++;
			rx_pkt = sys->repl->cache[curr_wq];
			rx_pkt = sys->repl->cache[curr_wq];
			curr_wq = (++curr_wq == sys->repl->capacity) ?
			curr_wq = (++curr_wq == sys->repl->capacity) ?
								 0 : curr_wq;
								 0 : curr_wq;